Skip to content

Commit

Permalink
Merge pull request #19 from TopRealm/revert-18-TESTENV1_40
Browse files Browse the repository at this point in the history
Revert "update test environment to 1.40"
  • Loading branch information
ZoruaFox authored Jun 21, 2024
2 parents 8c6fd42 + 08a8b41 commit d91d1b1
Show file tree
Hide file tree
Showing 3,764 changed files with 89,097 additions and 119,250 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ phpunit.xml
.phan/local-config.php

# Composer
/vendor
/composer.lock
/composer.local.json
/composer.phar
Expand Down
8 changes: 0 additions & 8 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
[BOT] libraryupgrader <[email protected]>
Aaron Schulz <[email protected]>
Aaron Schulz <[email protected]> <[email protected]>
Abijeet Patro <[email protected]>
Abijeet Patro <[email protected]> <[email protected]>
Adam Roses Wight <[email protected]>
Adam Roses Wight <[email protected]> <[email protected]>
Adam Roses Wight <[email protected]> <[email protected]>
Expand Down Expand Up @@ -149,7 +147,6 @@ David Causse <[email protected]>
David Chan <[email protected]>
Dayllan Maza <[email protected]>
Dayllan Maza <[email protected]> <[email protected]>
Denny Vrandečić <[email protected]>
Dereckson <[email protected]>
Derk-Jan Hartman <[email protected]>
Derk-Jan Hartman <[email protected]> <[email protected]>
Expand All @@ -160,8 +157,6 @@ diesel kapasule <[email protected]>
Domas Mituzas <[email protected]> <[email protected]>
Douglas Gardner <[email protected]>
DPStokesNZ <[email protected]>
Dreamy Jazz <[email protected]>
Dylsss <[email protected]>
Ebrahim Byagowi <[email protected]>
Ed Sanders <[email protected]>
Elliott Eggleston <[email protected]>
Expand Down Expand Up @@ -255,7 +250,6 @@ Jon Harald Søby <[email protected]> <[email protected]>
Jon Harald Søby <[email protected]>
Jon Robson <[email protected]>
Jon Robson <[email protected]> <[email protected]>
Jsn.sherman <[email protected]>
Juliusz Gonera <[email protected]>
Juliusz Gonera <[email protected]> <[email protected]>
Jure Kajzer <[email protected]>
Expand All @@ -276,7 +270,6 @@ Kunal Mehta <[email protected]> <[email protected]>
Kunal Mehta <[email protected]> <[email protected]>
Kwan Ting Chan <[email protected]> <[email protected]>
lekshmi <[email protected]>
Lectrician1 <[email protected]>
Leo Koppelkamm <[email protected]> <[email protected]>
Leon Liesener <[email protected]>
Leon Weber <[email protected]> <[email protected]>
Expand Down Expand Up @@ -353,7 +346,6 @@ Nik Everett <[email protected]>
Niklas Laxström <[email protected]>
Niklas Laxström <[email protected]> <[email protected]>
Nimish Gautam <[email protected]> <[email protected]>
Novem Linguae <[email protected]>
Nuria Ruiz <[email protected]>
Ori Livneh <[email protected]>
Ori Livneh <[email protected]> <[email protected]>
Expand Down
59 changes: 10 additions & 49 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@

$cfg['file_list'] = array_merge(
$cfg['file_list'],
<<<<<<< HEAD
=======
class_exists( PEAR::class ) ? [] : [ '.phan/stubs/mail.php' ],
defined( 'PASSWORD_ARGON2ID' ) ? [] : [ '.phan/stubs/password.php' ],
class_exists( ValueError::class ) ? [] : [ '.phan/stubs/ValueError.php' ],
>>>>>>> origin/1.39.7-test
class_exists( Socket::class ) ? [] : [ '.phan/stubs/Socket.php' ],
class_exists( ReturnTypeWillChange::class ) ? [] : [ '.phan/stubs/ReturnTypeWillChange.php' ],
class_exists( AllowDynamicProperties::class ) ? [] : [ '.phan/stubs/AllowDynamicProperties.php' ],
Expand All @@ -51,11 +48,10 @@ class_exists( WeakMap::class ) ? [] : [ '.phan/stubs/WeakMap.php' ],
$cfg['exclude_file_list'] = array_merge(
$cfg['exclude_file_list'],
[
// Avoid microsoft/tolerant-php-parser dependency
'maintenance/findDeprecated.php',
'maintenance/CodeCleanerGlobalsPass.php',
// Avoid nikic/php-parser dependency
'maintenance/shell.php',
// This file has invalid PHP syntax
'vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.inc',
// This file implements a polyfill for the JsonUnserializable class
'vendor/php-parallel-lint/php-parallel-lint/src/polyfill.php'
]
);

Expand All @@ -72,24 +68,24 @@ class_exists( WeakMap::class ) ? [] : [ '.phan/stubs/WeakMap.php' ],
]
);
}
<<<<<<< HEAD
=======

$cfg['analyzed_file_extensions'] = array_merge(
$cfg['analyzed_file_extensions'] ?? [ 'php' ],
[ 'inc' ]
);
>>>>>>> origin/1.39.7-test

$cfg['autoload_internal_extension_signatures'] = [
'dom' => '.phan/internal_stubs/dom.phan_php',
'excimer' => '.phan/internal_stubs/excimer.php',
'imagick' => '.phan/internal_stubs/imagick.phan_php',
'memcached' => '.phan/internal_stubs/memcached.phan_php',
'oci8' => '.phan/internal_stubs/oci8.phan_php',
'pcntl' => '.phan/internal_stubs/pcntl.phan_php',
'pgsql' => '.phan/internal_stubs/pgsql.phan_php',
'redis' => '.phan/internal_stubs/redis.phan_php',
'sockets' => '.phan/internal_stubs/sockets.phan_php',
'tideways_xhprof' => '.phan/internal_stubs/tideways_xhprof.phan_php',
'sqlsrv' => '.phan/internal_stubs/sqlsrv.phan_php',
'tideways' => '.phan/internal_stubs/tideways.phan_php',
'wikidiff2' => '.phan/internal_stubs/wikidiff.php'
];

Expand All @@ -99,48 +95,13 @@ class_exists( WeakMap::class ) ? [] : [ '.phan/stubs/WeakMap.php' ],
'maintenance/',
'mw-config/',
'resources/',
'vendor/',
'tests/common/',
'tests/parser/',
'tests/phpunit/mocks/',
// Do NOT add .phan/stubs/ here: stubs are conditionally loaded in file_list
];

// Include only direct production dependencies in vendor/
// Omit dev dependencies and most indirect dependencies

$composerJson = json_decode(
file_get_contents( __DIR__ . '/../composer.json' ),
true
);

$directDeps = [];
foreach ( $composerJson['require'] as $dep => $version ) {
$parts = explode( '/', $dep );
if ( count( $parts ) === 2 ) {
$directDeps[] = $dep;
}
}

// This is a list of all composer packages that are referenced by core but
// are not listed as requirements in composer.json.
$indirectDeps = [
'composer/spdx-licenses',
'doctrine/dbal',
'doctrine/sql-formatter',
'guzzlehttp/psr7',
'pear/net_url2',
'pear/pear-core-minimal',
'phpunit/phpunit',
'psr/http-message',
'seld/jsonlint',
'wikimedia/testing-access-wrapper',
'wikimedia/zest-css',
];

foreach ( [ ...$directDeps, ...$indirectDeps ] as $dep ) {
$cfg['directory_list'][] = "vendor/$dep";
}

$cfg['exclude_analysis_directory_list'] = [
'vendor/',
'.phan/',
Expand Down Expand Up @@ -179,7 +140,6 @@ class_exists( WeakMap::class ) ? [] : [ '.phan/stubs/WeakMap.php' ],
// remove them from here as well, so phan complains when something tries to use them.
$cfg['globals_type_map'] = array_merge( $cfg['globals_type_map'], [
'IP' => 'string',
'wgTitle' => 'MediaWiki\Title\Title',
'wgGalleryOptions' => 'array',
'wgDummyLanguageCodes' => 'string[]',
'wgNamespaceProtection' => 'array<int,string|string[]>',
Expand All @@ -194,6 +154,7 @@ class_exists( WeakMap::class ) ? [] : [ '.phan/stubs/WeakMap.php' ],
'wgLogActionsHandlers' => 'array<string,class-string>',
'wgPasswordPolicy' => 'array<string,array<string,string|array>>',
'wgVirtualRestConfig' => 'array<string,array>',
'wgWANObjectCaches' => 'array[]',
'wgLocalInterwikis' => 'string[]',
'wgDebugLogGroups' => 'string|false|array{destination:string,sample?:int,level:int}',
'wgCookiePrefix' => 'string|false',
Expand Down
Loading

0 comments on commit d91d1b1

Please sign in to comment.