Skip to content

Instantly share code, notes, and snippets.

@cs278
Last active June 28, 2024 11:38
Show Gist options
  • Save cs278/1e69072ace61b259f9457ea97bd645d1 to your computer and use it in GitHub Desktop.
Save cs278/1e69072ace61b259f9457ea97bd645d1 to your computer and use it in GitHub Desktop.
{
"require-dev": {
"phpstan/phpstan": "^1.11"
},
"autoload": {
"classmap": ["."]
}
}
<?php
declare(strict_types=1);
final class MyClass
{
use VendorTrait;
public function __construct(private readonly bool $foo)
{
}
}
parameters:
level: max
paths:
- MyClass.php
<?php
declare(strict_types=1);
trait VendorTrait
{
private readonly bool $foo;
private function foo(): bool
{
return $this->foo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment