build(deps): bump league/commonmark from 2.9.2 to 2.10.0 - #4569
Merged
Annotations
8 warnings and 10 notices
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/GroupController.php#L599
Assigning `mixed` type to a variable may lead to unexpected behavior.
>Assigning `mixed` type here.
Using `mixed` can lead to runtime errors if the variable is used in a way that assumes a specific type.
Help: Consider using a more specific type to avoid potential issues.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/GroupController.php#L538
Assigning `nonnull` type to a variable may lead to unexpected behavior.
>This expression has type `nonnull`.
>Assigning `nonnull` type here.
Using `nonnull` can lead to runtime errors if the variable is used in a way that assumes a specific type.
Help: Consider using a more specific type to avoid potential issues.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Category/CategoryTreeRestrictionFilter.php#L62
Assigning `mixed` type to a variable may lead to unexpected behavior.
>Assigning `mixed` type here.
Using `mixed` can lead to runtime errors if the variable is used in a way that assumes a specific type.
Help: Consider using a more specific type to avoid potential issues.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L987
Assigning `mixed` type to a variable may lead to unexpected behavior.
>This expression has type `mixed`.
>Assigning `mixed` type here.
Using `mixed` can lead to runtime errors if the variable is used in a way that assumes a specific type.
Help: Consider using a more specific type to avoid potential issues.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L779
Casting `mixed` to `bool`.
>This expression has type `mixed`
The truthiness of `mixed` cannot be determined statically. The result will be a general `bool`.
Help: Consider adding type assertions or checks if a more specific boolean outcome is expected.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L778
Casting `mixed` to `bool`.
>This expression has type `mixed`
The truthiness of `mixed` cannot be determined statically. The result will be a general `bool`.
Help: Consider adding type assertions or checks if a more specific boolean outcome is expected.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L324
Casting `mixed` to `bool`.
>This expression has type `mixed`
The truthiness of `mixed` cannot be determined statically. The result will be a general `bool`.
Help: Consider adding type assertions or checks if a more specific boolean outcome is expected.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L305
Casting `mixed` to `bool`.
>This expression has type `mixed`
The truthiness of `mixed` cannot be determined statically. The result will be a general `bool`.
Help: Consider adding type assertions or checks if a more specific boolean outcome is expected.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Instance/Search/Elasticsearch.php#L597
Redundant null coalesce: left-hand side can never be `null` or undefined.
>This expression (type `array{}|list<array{'answer': string, 'category_id': int(0), 'content_type': string('page'), 'id': int, 'keywords': string(''), 'lang': string, 'question': string, 'slug': string}|array{'index': array{'_id': truthy-string, '_index': string}}>`) is never `null` or undefined
>This right-hand side will never be evaluated
The null coalesce operator `??` only evaluates the right-hand side if the left-hand side is `null` or not set.
Help: Consider removing the `??` operator and the right-hand side expression.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Instance/Search/OpenSearch.php#L465
Redundant null coalesce: left-hand side can never be `null` or undefined.
>This expression (type `array{}|list<array{'answer': string, 'category_id': int(0), 'content_type': string('page'), 'id': int, 'keywords': string(''), 'lang': string, 'question': string, 'slug': string}|array{'index': array{'_id': truthy-string, '_index': string}}>`) is never `null` or undefined
>This right-hand side will never be evaluated
The null coalesce operator `??` only evaluates the right-hand side if the left-hand side is `null` or not set.
Help: Consider removing the `??` operator and the right-hand side expression.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L688
Redundant cast to `(string)`: the expression already has this type.
>This expression already has type `string`.
Casting a value to a type it already possesses has no effect.
Help: Remove the redundant `(string)` cast.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L425
Redundant cast to `(string)`: the expression already has this type.
>This expression already has type `string`.
Casting a value to a type it already possesses has no effect.
Help: Remove the redundant `(string)` cast.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L249
Redundant cast to `(string)`: the expression already has this type.
>This expression already has type `string`.
Casting a value to a type it already possesses has no effect.
Help: Remove the redundant `(string)` cast.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L146
Redundant cast to `(string)`: the expression already has this type.
>This expression already has type `string`.
Casting a value to a type it already possesses has no effect.
Help: Remove the redundant `(string)` cast.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L824
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L815
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L608
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
|
Run Mago:
phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/FaqController.php#L590
Avoid `else` clauses.
>This `else` clause can often be eliminated
Code is often clearer when the main logic is not nested inside an `if` statement.
Help: Consider refactoring to use an early return (a guard clause) to simplify the control flow.
|
background
wait
wait-all
cancel
parallel
Loading