Fix PHP stan issues

Created on 15 February 2024, 4 months ago

PHP Stan report after Drupal CI integration:

------ ------------------------------------------------------------------------------
Line src/Form/AdminToolbarVersionSettingsForm.php
------ ------------------------------------------------------------------------------
79 Unsafe usage of new static().
πŸ’‘ See:
https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
------ ------------------------------------------------------------------------------

------ ----------------------------------------------------------------------
Line src/VersionInfoManager.php
------ ----------------------------------------------------------------------
91 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------

[ERROR] Found 2 errors

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium kriboogh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024