Use restrictions prop directly #146
php-ci-tests.yml
on: push
PHP Code Sniffer
25s
PHP Static Analysis
29s
Annotations
10 errors
PHP Static Analysis:
classes/Services/Restrictions.php#L198
Call to function is_null() with int|false will always evaluate to false.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L243
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L243
PHPDoc tag @param has invalid value (Restrictions $this Restrictions instance.): Unexpected token "$this", expected variable at offset 146
|
PHP Static Analysis:
classes/Services/Restrictions.php#L261
Access to an undefined property ContentControl\Services\Restrictions::$restrictions_cache.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L274
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L472
Offset bool on array<string, array<ContentControl\Models\Restriction>> on left side of ?? does not exist.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L475
Negated boolean expression is always false.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L475
Offset false on array<string, array<ContentControl\Models\Restriction>> in isset() does not exist.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L475
Result of && is always false.
|
PHP Static Analysis:
classes/Services/Restrictions.php#L476
Negated boolean expression is always false.
|