ci: Bump test PHP version #3
Annotations
11 errors and 6 warnings
Convert PHPCS report to PR comments:
src/Entity/NavMenuItem.php#L53
The default value of the $flags parameter for html_entity_decode() was changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 in PHP 8.1. For cross-version compatibility, the $flags parameter should be explicitly set.
|
Convert PHPCS report to PR comments:
src/Entity/NavMenuItem.php#L73
Use Yoda Condition checks, you must.
|
Convert PHPCS report to PR comments:
src/Entity/EntityInterface.php#L12
Method name "setCurrentId" in class EntityInterface is not in snake case format, try "set_current_id"
|
Convert PHPCS report to PR comments:
src/Entity/Term.php#L25
Use Yoda Condition checks, you must.
|
Convert PHPCS report to PR comments:
src/Entity/Term.php#L38
The default value of the $flags parameter for html_entity_decode() was changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 in PHP 8.1. For cross-version compatibility, the $flags parameter should be explicitly set.
|
Convert PHPCS report to PR comments:
src/Entity/Term.php#L80
The default value of the $flags parameter for html_entity_decode() was changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 in PHP 8.1. For cross-version compatibility, the $flags parameter should be explicitly set.
|
Convert PHPCS report to PR comments:
src/Entity/Term.php#L159
Use Yoda Condition checks, you must.
|
Convert PHPCS report to PR comments:
src/Provider/Picsum.php#L62
Variable "$fullPath" is not in valid snake_case format, try "$full_path"
|
Convert PHPCS report to PR comments:
src/Provider/Picsum.php#L104
Variable "$fullPath" is not in valid snake_case format, try "$full_path"
|
Convert PHPCS report to PR comments:
src/Entity/User.php#L66
The default value of the $flags parameter for html_entity_decode() was changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 in PHP 8.1. For cross-version compatibility, the $flags parameter should be explicitly set.
|
Run PHPCS
Process completed with exit code 1.
|
Convert PHPCS report to PR comments:
src/Entity/Entity.php#L26
A "__construct()" magic method can not return a value. Found: "return $this->exists( $id ) ? $this->setCurrentId( $id ) : $this->setCurrentId( false );"
|
Convert PHPCS report to PR comments:
src/Entity/Entity.php#L46
The method parameter $k is never used
|
Convert PHPCS report to PR comments:
src/Entity/Entity.php#L107
It is recommended not to use reserved keyword "array" as function parameter name. Found: $array
|
Convert PHPCS report to PR comments:
src/Command.php#L145
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
|
Convert PHPCS report to PR comments:
src/Entity/Post.php#L102
This comment is 48% valid code; is this commented out code?
|
Convert PHPCS report to PR comments:
src/Entity/Post.php#L178
Not using strict comparison for in_array; supply true for $strict argument.
|
Loading