Author: Markus Staab (staabm)
Committer: Derick Rethans (derickr)
Date: 2026-06-17T12:10:29+01:00
Commit: scan everything but vendor/ · php/web-php@924c5e8 · GitHub
Raw diff: https://github.com/php/web-php/commit/924c5e8d98e12ccc443633a44ca1e40100c4feee.diff
scan everything but vendor/
Changed paths:
M composer.json
M composer.lock
M phpstan-baseline.neon
M phpstan.neon.dist
Diff:
diff --git a/composer.json b/composer.json
index 1146b518f4..a0a9781e8b 100644
--- a/composer.json
+++ b/composer.json
@@ -13,6 +13,9 @@
"require-dev": {
"ext-curl": "*",
"friendsofphp/php-cs-fixer": "^3.95.7",
+ "phpstan/extension-installer": "^1.4",
+ "phpstan/phpstan": "^2.2",
+ "phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^11.5.50"
},
"autoload": {
@@ -29,6 +32,9 @@
"platform": {
"php": "8.4.0"
},
- "sort-packages": true
+ "sort-packages": true,
+ "allow-plugins": {
+ "phpstan/extension-installer": true
+ }
}
}
diff --git a/composer.lock b/composer.lock
index 44960c8bbe..85ef850cd1 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at Basic usage - Composer,
"This file is @generated automatically"
],
- "content-hash": "439a0cb5dbdb12e959a62139f804d523",
+ "content-hash": "7228e9001768b6211365367d8cbcebee",
"packages": [],
"packages-dev": [
{
@@ -808,6 +808,174 @@
},
"time": "2022-02-21T01:04:05+00:00"
},
+ {
+ "name": "phpstan/extension-installer",
+ "version": "1.4.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/extension-installer.git",
+ "reference": "85e90b3942d06b2326fba0403ec24fe912372936"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/85e90b3942d06b2326fba0403ec24fe912372936",
+ "reference": "85e90b3942d06b2326fba0403ec24fe912372936",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^2.0",
+ "php": "^7.2 || ^8.0",
+ "phpstan/phpstan": "^1.9.0 || ^2.0"
+ },
+ "require-dev": {
+ "composer/composer": "^2.0",
+ "php-parallel-lint/php-parallel-lint": "^1.2.0",
+ "phpstan/phpstan-strict-rules": "^0.11 || ^0.12 || ^1.0"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "PHPStan\\ExtensionInstaller\\Plugin"
+ },
+ "autoload": {
+ "psr-4": {
+ "PHPStan\\ExtensionInstaller\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "Composer plugin for automatic installation of PHPStan extensions",
+ "keywords": [
+ "dev",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/phpstan/extension-installer/issues",
+ "source": "https://github.com/phpstan/extension-installer/tree/1.4.3"
+ },
+ "time": "2024-09-04T20:21:43+00:00"
+ },
+ {
+ "name": "phpstan/phpstan",
+ "version": "2.2.2",
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e5cc34d491a90e79c216d824f60fe21fd4d93bd6",
+ "reference": "e5cc34d491a90e79c216d824f60fe21fd4d93bd6",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.4|^8.0"
+ },
+ "conflict": {
+ "phpstan/phpstan-shim": "*"
+ },
+ "bin": [
+ "phpstan",
+ "phpstan.phar"
+ ],
+ "type": "library",
+ "autoload": {
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ondřej Mirtes"
+ },
+ {
+ "name": "Markus Staab"
+ },
+ {
+ "name": "Vincent Langlet"
+ }
+ ],
+ "description": "PHPStan - PHP Static Analysis Tool",
+ "keywords": [
+ "dev",
+ "static analysis"
+ ],
+ "support": {
+ "docs": "https://phpstan.org/user-guide/getting-started",
+ "forum": "https://github.com/phpstan/phpstan/discussions",
+ "issues": "https://github.com/phpstan/phpstan/issues",
+ "security": "https://github.com/phpstan/phpstan/security/policy",
+ "source": "https://github.com/phpstan/phpstan-src"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/ondrejmirtes",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/phpstan",
+ "type": "github"
+ }
+ ],
+ "time": "2026-06-05T09:00:01+00:00"
+ },
+ {
+ "name": "phpstan/phpstan-phpunit",
+ "version": "2.0.16",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/phpstan-phpunit.git",
+ "reference": "6ab598e1bc106e6827fd346ae4a12b4a5d634c32"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/6ab598e1bc106e6827fd346ae4a12b4a5d634c32",
+ "reference": "6ab598e1bc106e6827fd346ae4a12b4a5d634c32",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.4 || ^8.0",
+ "phpstan/phpstan": "^2.1.32"
+ },
+ "conflict": {
+ "phpunit/phpunit": "<7.0"
+ },
+ "require-dev": {
+ "nikic/php-parser": "^5",
+ "php-parallel-lint/php-parallel-lint": "^1.2",
+ "phpstan/phpstan-deprecation-rules": "^2.0",
+ "phpstan/phpstan-strict-rules": "^2.0",
+ "phpunit/phpunit": "^9.6"
+ },
+ "type": "phpstan-extension",
+ "extra": {
+ "phpstan": {
+ "includes": [
+ "extension.neon",
+ "rules.neon"
+ ]
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "PHPStan\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHPUnit extensions and rules for PHPStan",
+ "keywords": [
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/phpstan/phpstan-phpunit/issues",
+ "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.16"
+ },
+ "time": "2026-02-14T09:05:21+00:00"
+ },
{
"name": "phpunit/php-code-coverage",
"version": "11.0.12",
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index e9ed039c3a..ec3f0c6357 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1,5 +1,227 @@
parameters:
ignoreErrors:
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/1998.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/1999.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2000.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2001.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2002.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2003.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2004.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2005.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2006.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2007.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2008.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2009.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2010.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2011.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2012.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2013.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2014.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2015.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2016.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2017.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2018.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2019.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2020.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2021.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2022.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2023.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2024.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2025.php
+
+ -
+ message: '#^Variable \$SIDEBAR_DATA might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: archive/2026.php
+
+ -
+ message: '#^Variable \$cm might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: cal.php
+
+ -
+ message: '#^Variable \$cy might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: cal.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 2
+ path: conferences/index.php
+
+ -
+ message: '#^Variable \$LANG might not be defined\.$#'
+ identifier: variable.undefined
+ count: 2
+ path: docs.php
+
+ -
+ message: '#^Variable \$LANG might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: download-docs.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: downloads.php
+
+ -
+ message: '#^Variable \$LANG might not be defined\.$#'
+ identifier: variable.undefined
+ count: 8
+ path: error.php
+
+ -
+ message: '#^Variable \$userPreferences might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: error.php
+
-
message: '#^Variable \$version might not be defined\.$#'
identifier: variable.undefined
@@ -282,6 +504,30 @@ parameters:
count: 5
path: include/mozsearch.inc
+ -
+ message: '#^Variable \$CONF_TEASER might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: index.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 5
+ path: index.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: mailing-lists.php
+
+ -
+ message: '#^Variable \$LANG might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: manual-lookup.php
+
-
message: '#^Variable \$LANG might not be defined\.$#'
identifier: variable.undefined
@@ -293,3 +539,111 @@ parameters:
identifier: variable.undefined
count: 1
path: manual/vote-note.php
+
+ -
+ message: '#^Variable \$LAST_UPDATED might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: mirror-info.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: mirror-info.php
+
+ -
+ message: '#^Variable \$LAST_UPDATED might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: mirror.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: mirror.php
+
+ -
+ message: '#^Variable \$MIRRORS might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: my.php
+
+ -
+ message: '#^Variable \$userPreferences might not be defined\.$#'
+ identifier: variable.undefined
+ count: 11
+ path: my.php
+
+ -
+ message: '#^Variable \$QA_CHECKSUM_TYPES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: pre-release-builds.php
+
+ -
+ message: '#^Variable \$QA_RELEASES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: pre-release-builds.php
+
+ -
+ message: '#^Variable \$LANG might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: quickref.php
+
+ -
+ message: '#^Variable \$RELEASES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: releases/feed.php
+
+ -
+ message: '#^Variable \$OLDRELEASES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 3
+ path: releases/index.php
+
+ -
+ message: '#^Variable \$RELEASES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 2
+ path: releases/index.php
+
+ -
+ message: '#^Variable \$LANG might not be defined\.$#'
+ identifier: variable.undefined
+ count: 2
+ path: search.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 3
+ path: search.php
+
+ -
+ message: '#^Variable \$COUNTRIES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: submit-event.php
+
+ -
+ message: '#^Variable \$COUNTRIES might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: thanks.php
+
+ -
+ message: '#^Variable \$historical_mirrors might not be defined\.$#'
+ identifier: variable.undefined
+ count: 1
+ path: thanks.php
+
+ -
+ message: '#^Variable \$MYSITE might not be defined\.$#'
+ identifier: variable.undefined
+ count: 19
+ path: urlhowto.php
diff --git a/phpstan.neon.dist b/phpstan.neon.dist
index 68790050a9..d924087d33 100644
--- a/phpstan.neon.dist
+++ b/phpstan.neon.dist
@@ -4,11 +4,11 @@ includes:
parameters:
level: 3
paths:
- - bin
- - src
- - tests
- - manual
- - include
+ - .
fileExtensions:
- php
- inc
+
+ excludePaths:
+ analyse:
+ - vendor/