Fix PHPstan and get in line with new usage of add_option #73
Annotations
5 errors and 3 warnings
Check code style:
aaa-option-optimizer.php#L40
Use placeholders and $wpdb->prepare(); found interpolated variable $placeholders at "SELECT count(*) AS count, SUM( LENGTH( option_value ) ) as autoload_size FROM {$wpdb->options} WHERE autoload IN ( $placeholders )"
|
Check code style:
src/class-rest.php#L171
Whitespace found at end of line
|
Check code style:
src/class-admin-page.php#L290
Use placeholders and $wpdb->prepare(); found interpolated variable $placeholders at "SELECT count(*) AS count, SUM( LENGTH( option_value ) ) as autoload_size FROM {$wpdb->options} WHERE autoload IN ( $placeholders )"
|
Check code style
Process completed with exit code 1.
|
Check code style
Process completed with exit code 2.
|
Check code style
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Check code style:
aaa-option-optimizer.php#L40
Replacement variables found, but no valid placeholders found in the query.
|
Check code style:
src/class-admin-page.php#L290
Replacement variables found, but no valid placeholders found in the query.
|