VarSetType rename to SetVarType, add phan/phpstan/phpunit tests
Breaking change: VarSetType/VarSetTypeNull classes have been renamed to SetVarType/SetVarTypeNull Added phan/phpstan static checkes and settings Add phpunit tests (in test/phpunit) that are an exact copy from the trunk folder unit tests The phan/phpstan tests have been updated to work with the composer layout config files with static defines needed for certain classes are stored in test/configs (config.php, config.other.php, config.master.php)
This commit is contained in:
21
phpstan-conditional.php
Normal file
21
phpstan-conditional.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
// conditional formats for PHP versions
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$config = [];
|
||||
|
||||
if (PHP_VERSION_ID >= 8_00_00) {
|
||||
// Change of signature in PHP 8.1
|
||||
/* $config['parameters']['ignoreErrors'][] = [
|
||||
'message' => '~Parameter #1 \$(result|connection) of function pg_\w+ '
|
||||
. 'expects resource(\|null)?, object\|resource given\.~',
|
||||
'path' => 'www/lib/CoreLibs/DB/SQL/PgSQL.php',
|
||||
// 'count' => 1,
|
||||
]; */
|
||||
}
|
||||
|
||||
return $config;
|
||||
|
||||
// __END_
|
||||
Reference in New Issue
Block a user