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 4 finale #387

Merged
merged 12 commits into from
May 17, 2023
Merged

PHPStan: Phase 4 finale #387

merged 12 commits into from
May 17, 2023

Conversation

srtfisher
Copy link
Member

@srtfisher srtfisher commented May 15, 2023

Adds PHPStan to all remaining parts of the code base.

Resolves #186

@srtfisher srtfisher changed the base branch from main to phpstan-phase-3 May 15, 2023 18:27
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.

Looks good Sean 🦥

@@ -429,7 +435,7 @@ public function set_route_parameter( string $key, $value ) {
* @return Route
*/
public function get_route(): ?Route {
return $this->route ?? null;
return isset( $this->route ) ? $this->route : null;
Copy link
Member

Choose a reason for hiding this comment

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

Are we thinking this is more readable or is this to support an older PHP version or something?

Base automatically changed from phpstan-phase-3 to main May 17, 2023 13:39
@srtfisher srtfisher enabled auto-merge (squash) May 17, 2023 13:40
@srtfisher srtfisher merged commit d8a9ff8 into main May 17, 2023
7 checks passed
@srtfisher srtfisher deleted the phpstan-phase-4 branch May 17, 2023 13: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