-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start fixing phpstan fails #2002
base: bucket/phpstan-and-fixes
Are you sure you want to change the base?
Conversation
per https://theeventscalendar.atlassian.net/browse/TECENG-44 Fix issue with undefined `$container`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes: Invalid param formats in docblocks. src/Tribe/Context.php Invalid return statements: Tribe__Admin__Notices::register_transient() Tribe__Ajax__Dropdown::sort_terms_hierarchically() Tribe__Admin__Notice__Plugin_Upgrade_Notice::parse_for_upgrade_notice() Unsafe usage of new static() Thrown in src/Common/Site_Health/Fields/Generic_Info_Field.php mitigated via an interface to enforce the constructor signature Static access to instance property Tribe\Admin\Upsell_Notice\Main::$template. Incorrect/unused use function in src/Tribe/Admin/Notices.php
phpstan.neon
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this shows as empty?
This PR has become the "fix" branch, see #2012 for the base "just add phpstan testing to TCMN" |
* @param array<string,string>|string|null $value | ||
* @param int $priority | ||
*/ | ||
public function __construct( string $id, string $label, $value = null, int $priority = 50 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function __construct( string $id, string $label, $value = null, int $priority = 50 ); | |
public function __construct( string $id, string $label, $value = null, int $priority = 50 ); |
Am I seeing this correct? Spacing ok?
per https://theeventscalendar.atlassian.net/browse/TECENG-44
Fix issue with undefined
$container
Address some of the things
phpstan
is surfacing.