Add code quality tools and configuration (PHP Code Sniffer, PHPStan, PHPUnit) #1
Annotations
40 errors and 1 warning
PHPStan with PHP 8.3 prefer-lowest
Internal error: Non-static method PEAR_ErrorStack::singleton() cannot be called statically while analysing file /home/runner/work/de.systopia.share/de.systopia.share/CRM/Share/Controller.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/de.systopia.share/de.systopia.share/ci/vendor/pear/pear-core-minimal/src/PEAR/ErrorStack.php(983)
#0 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/ClassLoader.php(576): include()
#1 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(41): Composer\Autoload\ClassLoader->loadClass()
#3 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/AggregateSourceLocator.php(26): PHPStan\Reflection\BetterReflection\SourceLocator\AutoloadFunctionsSourceLocator->locateIdentifier()
#4 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/MemoizingSourceLocator.php(33): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()
#5 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflector/DefaultReflector.php(32): PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier()
#6 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(907): PHPStan\BetterReflection\Reflector\DefaultReflector->reflectClass()
#7 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(418): PHPStan\BetterReflection\Reflection\ReflectionClass->getParentClass()
#8 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(556): PHPStan\BetterReflection\Reflection\ReflectionClass->getMethodsIndexedByLowercasedName()
#9 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(566): PHPStan\BetterReflection\Reflection\ReflectionClass->getMethod()
#10 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/Adapter/ReflectionClass.php(151): PHPStan\BetterReflection\Reflection\ReflectionClass->hasMethod()
#11 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/Php/PhpClassReflectionExtension.php(324): PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass->hasMethod()
#12 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(519): PHPStan\Reflection\Php\PhpClassReflectionExtension->hasMethod()
#13 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Type/ObjectType.php(565): PHPStan\Reflection\ClassReflection->hasMethod()
#14 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(3884): PHPStan\Type\ObjectType->hasMethod()
#15 phar:///home/runner/work/de.
|
PHPStan with PHP 8.3 prefer-lowest
Process completed with exit code 1.
|
PHPStan with PHP 8.0 prefer-lowest
The job was canceled because "_8_3_prefer-lowest" failed.
|
PHPStan with PHP 8.0 prefer-lowest
Internal error: Non-static method PEAR_ErrorStack::singleton() cannot be called statically while analysing file /home/runner/work/de.systopia.share/de.systopia.share/CRM/Share/Controller.php
Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml:
## /home/runner/work/de.systopia.share/de.systopia.share/ci/vendor/pear/pear-core-minimal/src/PEAR/ErrorStack.php(983)
#0 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/ClassLoader.php(576): include()
#1 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(41): Composer\Autoload\ClassLoader->loadClass()
#3 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/AggregateSourceLocator.php(26): PHPStan\Reflection\BetterReflection\SourceLocator\AutoloadFunctionsSourceLocator->locateIdentifier()
#4 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/SourceLocator/Type/MemoizingSourceLocator.php(33): PHPStan\BetterReflection\SourceLocator\Type\AggregateSourceLocator->locateIdentifier()
#5 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflector/DefaultReflector.php(32): PHPStan\BetterReflection\SourceLocator\Type\MemoizingSourceLocator->locateIdentifier()
#6 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(907): PHPStan\BetterReflection\Reflector\DefaultReflector->reflectClass()
#7 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(418): PHPStan\BetterReflection\Reflection\ReflectionClass->getParentClass()
#8 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(556): PHPStan\BetterReflection\Reflection\ReflectionClass->getMethodsIndexedByLowercasedName()
#9 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/ReflectionClass.php(566): PHPStan\BetterReflection\Reflection\ReflectionClass->getMethod()
#10 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/Reflection/Adapter/ReflectionClass.php(151): PHPStan\BetterReflection\Reflection\ReflectionClass->hasMethod()
#11 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/Php/PhpClassReflectionExtension.php(324): PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass->hasMethod()
#12 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/ClassReflection.php(519): PHPStan\Reflection\Php\PhpClassReflectionExtension->hasMethod()
#13 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Type/ObjectType.php(565): PHPStan\Reflection\ClassReflection->hasMethod()
#14 phar:///home/runner/work/de.systopia.share/de.systopia.share/tools/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/MutatingScope.php(3884): PHPStan\Type\ObjectType->hasMethod()
#15 phar:///home/runner/work/de.
|
PHPStan with PHP 8.0 prefer-lowest
Process completed with exit code 1.
|
PHPStan with PHP 8.0 prefer-stable
The job was canceled because "_8_3_prefer-lowest" failed.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L25
Property CRM_Share_Change::$change_id has no type specified.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L26
Property CRM_Share_Change::$change_data has no type specified.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L28
Method CRM_Share_Change::__construct() has parameter $id with no type specified.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L31
Call to an undefined method object::fetch().
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L32
Function Exception not found.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L42
Method CRM_Share_Change::get() has parameter $key with no type specified.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L43
Variable property access on mixed.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L44
Variable property access on mixed.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L57
Method CRM_Share_Change::getJSONData() has parameter $key with no type specified.
|
PHPStan with PHP 8.0 prefer-stable:
CRM/Share/Change.php#L58
Parameter #1 $json of function json_decode expects string, mixed given.
|
PHPStan with PHP 7.4 prefer-lowest
The job was canceled because "_8_3_prefer-lowest" failed.
|
PHPStan with PHP 7.4 prefer-lowest
The operation was canceled.
|
PHPStan with PHP 7.4 prefer-stable
The job was canceled because "_8_3_prefer-lowest" failed.
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L46
Syntax error, unexpected T_DOUBLE_ARROW on line 46
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L47
Syntax error, unexpected T_DOUBLE_ARROW on line 47
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L92
Syntax error, unexpected T_PUBLIC on line 92
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L107
Syntax error, unexpected T_PUBLIC on line 107
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L131
Syntax error, unexpected T_PUBLIC on line 131
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L153
Syntax error, unexpected T_DOUBLE_ARROW on line 153
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L154
Syntax error, unexpected T_DOUBLE_ARROW on line 154
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L156
Syntax error, unexpected ')' on line 156
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNode.php#L158
Syntax error, unexpected '}', expecting EOF on line 158
|
PHPStan with PHP 7.4 prefer-stable:
CRM/Share/Form/ShareNodePeering.php#L45
Syntax error, unexpected T_DOUBLE_ARROW on line 45
|
PHPStan with PHP 8.3 prefer-stable
The job was canceled because "_8_3_prefer-lowest" failed.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L25
Property CRM_Share_Change::$change_id has no type specified.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L26
Property CRM_Share_Change::$change_data has no type specified.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L28
Method CRM_Share_Change::__construct() has parameter $id with no type specified.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L31
Call to an undefined method object::fetch().
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L32
Function Exception not found.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L42
Method CRM_Share_Change::get() has parameter $key with no type specified.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L43
Variable property access on mixed.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L44
Variable property access on mixed.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L57
Method CRM_Share_Change::getJSONData() has parameter $key with no type specified.
|
PHPStan with PHP 8.3 prefer-stable:
CRM/Share/Change.php#L58
Parameter #1 $json of function json_decode expects string, mixed given.
|
PHPStan with PHP 8.3 prefer-lowest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|