Skip to content

phpstan rules

phpstan rules #30

Triggered via push November 22, 2024 08:57
Status Failure
Total duration 48s
Artifacts

linting.yaml

on: push
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

13 errors
Linting - PHP 8.1: EventSubscriber/ThemeEventSubscriber.php#L33
Construct empty() is not allowed. Use more strict comparison.
Linting - PHP 8.1: Validator/Constraints/CustomCssValidator.php#L25
Parameter #1 $value (string) of method KimaiPlugin\CustomCSSBundle\Validator\Constraints\CustomCssValidator::validate() should be contravariant with parameter $value (mixed) of method Symfony\Component\Validator\ConstraintValidatorInterface::validate()
Linting - PHP 8.1: Validator/Constraints/CustomCssValidator.php#L25
Parameter #1 $value (string) of method KimaiPlugin\CustomCSSBundle\Validator\Constraints\CustomCssValidator::validate() should be contravariant with parameter $value (mixed) of method Symfony\Component\Validator\ConstraintValidatorInterface::validate()
Linting - PHP 8.1: Validator/Constraints/CustomCssValidator.php#L37
Foreach overwrites $value with its value variable.
Linting - PHP 8.1
Process completed with exit code 1.
Linting - PHP 8.3
The job was canceled because "_8_1" failed.
Linting - PHP 8.3: EventSubscriber/ThemeEventSubscriber.php#L33
Construct empty() is not allowed. Use more strict comparison.
Linting - PHP 8.3: Validator/Constraints/CustomCssValidator.php#L25
Parameter #1 $value (string) of method KimaiPlugin\CustomCSSBundle\Validator\Constraints\CustomCssValidator::validate() should be contravariant with parameter $value (mixed) of method Symfony\Component\Validator\ConstraintValidatorInterface::validate()
Linting - PHP 8.3: Validator/Constraints/CustomCssValidator.php#L25
Parameter #1 $value (string) of method KimaiPlugin\CustomCSSBundle\Validator\Constraints\CustomCssValidator::validate() should be contravariant with parameter $value (mixed) of method Symfony\Component\Validator\ConstraintValidatorInterface::validate()
Linting - PHP 8.3: Validator/Constraints/CustomCssValidator.php#L37
Foreach overwrites $value with its value variable.
Linting - PHP 8.3
Process completed with exit code 1.
Linting - PHP 8.2
The job was canceled because "_8_1" failed.
Linting - PHP 8.2
The operation was canceled.