Closed (fixed)
Project:
Advanced Content Feedback (aka admin_feedback)
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2022 at 21:19 UTC
Updated:
11 Nov 2022 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vitorbs commentedI'm working on it.
Comment #3
vitorbs commented1- I created a constructor and method 'create' in the 'AdminFeedbackDeleteForm' because doesn't had any of both.
2- Replaced /Drupal call in 'AdminFeedbackDeleteForm' with dependency injection.
3 - Removed the unused statement
4- Made the constructor
finalto disallow overriding.And now i see no errors after using the php stan analyse.
Please, review.
Comment #4
vitorbs commentedComment #5
vitorbs commentedComment #6
christyanpaim commentedComment #7
christyanpaim commentedWorks fine here!
Comment #9
bserem commentedExcellent work @vitorbs! The patch is spot on!
Btw, Drupal has a guide for using phpstan: https://www.drupal.org/docs/develop/development-tools/phpstan/handling-u...
For future reference :)