Skip to content

fix: multilevel permissions in can() method #2225

fix: multilevel permissions in can() method

fix: multilevel permissions in can() method #2225

Triggered via pull request November 13, 2024 21:51
Status Failure
Total duration 1m 35s
Artifacts

phpstan.yml

on: pull_request
Matrix: phpstan / build
Fit to window
Zoom out
Zoom in

Annotations

15 errors
phpstan / PHP 8.2 Static Analysis: src/Authorization/Traits/Authorizable.php (in context of class CodeIgniter/Shield/Entities/User)#L290
Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.
phpstan / PHP 8.2 Static Analysis: src/Entities/Group.php#L98
Construct empty() is not allowed. Use more strict comparison.
phpstan / PHP 8.2 Static Analysis
Process completed with exit code 1.
phpstan / PHP 8.3 Static Analysis: src/Authorization/Traits/Authorizable.php (in context of class CodeIgniter/Shield/Entities/User)#L290
Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.
phpstan / PHP 8.3 Static Analysis: src/Entities/Group.php#L98
Construct empty() is not allowed. Use more strict comparison.
phpstan / PHP 8.3 Static Analysis
Process completed with exit code 1.
phpstan / PHP 8.0 Static Analysis: src/Authorization/Traits/Authorizable.php (in context of class CodeIgniter/Shield/Entities/User)#L290
Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.
phpstan / PHP 8.0 Static Analysis: src/Entities/Group.php#L98
Construct empty() is not allowed. Use more strict comparison.
phpstan / PHP 8.0 Static Analysis
Process completed with exit code 1.
phpstan / PHP 7.4 Static Analysis: src/Authorization/Traits/Authorizable.php (in context of class CodeIgniter/Shield/Entities/User)#L290
Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.
phpstan / PHP 7.4 Static Analysis: src/Entities/Group.php#L98
Construct empty() is not allowed. Use more strict comparison.
phpstan / PHP 7.4 Static Analysis
Process completed with exit code 1.
phpstan / PHP 8.1 Static Analysis: src/Authorization/Traits/Authorizable.php (in context of class CodeIgniter/Shield/Entities/User)#L290
Only booleans are allowed in &&, array<int<0, max>, string> given on the right side.
phpstan / PHP 8.1 Static Analysis: src/Entities/Group.php#L98
Construct empty() is not allowed. Use more strict comparison.
phpstan / PHP 8.1 Static Analysis
Process completed with exit code 1.