-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default null values to "current /something/" properties
These will always be initialized in the `action*()` methods and so will always be available in the `createComponent*()` methods. But Psalm can't possibly know that. Still not sure I like it this way, it's there mostly for Psalm only but maybe it's ok. Resolves errors like ``` ERROR: PropertyNotSetInConstructor - app/Admin/Presenters/TrainingsPresenter.php:44:30 - Property MichalSpacekCz\Admin\Presenters\TrainingsPresenter::$application is not defined in constructor of MichalSpacekCz\Admin\Presenters\TrainingsPresenter or in any private or final methods called in the constructor (see https://psalm.dev/074) private TrainingApplication $application; ```
- Loading branch information
Showing
5 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters