-
Notifications
You must be signed in to change notification settings - Fork 6
Preview/phpstan #60
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
Preview/phpstan #60
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
parameters: | ||
level: 0 | ||
paths: | ||
- . | ||
excludePaths: | ||
- vendor/* | ||
- node_modules/* | ||
- .git/* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
class HelloWorld | ||
{ | ||
public function sayHello(DateTimeImutable $date): void | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the typo in the class name. There's a typo in the parameter type. - public function sayHello(DateTimeImutable $date): void + public function sayHello(DateTimeImmutable $date): void 📝 Committable suggestion
Suggested change
public function sayHello(DateTimeImutable $date): void
public function sayHello(DateTimeImmutable $date): void
🧰 Tools🪛 PHPStan (2.1.17)5-5: Parameter $date of method HelloWorld::sayHello() has invalid type DateTimeImutable. (class.notFound) 🤖 Prompt for AI Agents
|
||
{ | ||
echo 'Hello, ' . $date->format('j. n. Y'); | ||
} | ||
} |