Add code quality tools and configuration (PHP Code Sniffer, PHPStan, PHPUnit) #1
Annotations
2 errors and 1 warning
Run PHPStan
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.
|
Run PHPStan
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading