Skip to content
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

PHPStan: Phase 2 #385

Merged
merged 14 commits into from
May 10, 2023
Merged

PHPStan: Phase 2 #385

merged 14 commits into from
May 10, 2023

Conversation

srtfisher
Copy link
Member

@srtfisher srtfisher commented May 10, 2023

Adds PHPStan support to more packages. The remaining packages are the hardest 😮‍💨 .

*/
protected $driver;
protected Flysystem $driver;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flysystem looks cool

Copy link
Member

@attackant attackant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple questions but looks good.

if ( ! empty( $this->expected_output_substrings ) ) {
$output = $this->tester->getDisplay();
// todo: add output substring assertions.
// if ( ! empty( $this->expected_output_substrings ) ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming you left these in on purpose.

@@ -31,7 +31,7 @@ public static function installs_wordpress_set_up_before_class(): void {
*
* @deprecated Logic condensed into {@see \Mantle\Testing\Installation_Manager::after()}.
*/
$callback = function_exists( 'mantle_after_wordpress_install' ) ? 'mantle_after_wordpress_install' : null;
$callback = function_exists( 'mantle_after_wordpress_install' ) ? 'mantle_after_wordpress_install' : 'null';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supposed to be a string?

@srtfisher srtfisher merged commit 05abd59 into main May 10, 2023
1 check passed
@srtfisher srtfisher deleted the phpstan-phase-2 branch May 10, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants