Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cspray/phinal
A Psalm plugin to ensure your classes are marked final!
https://github.com/cspray/phinal
php psalm-plugin
Last synced: about 1 month ago
JSON representation
A Psalm plugin to ensure your classes are marked final!
- Host: GitHub
- URL: https://github.com/cspray/phinal
- Owner: cspray
- Created: 2022-07-08T17:26:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T13:37:05.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T13:23:39.122Z (about 1 month ago)
- Topics: php, psalm-plugin
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phinal
Do you like final? _Really_ like it? Then enforce it on all your classes! When you have to fallback to inheritance you can do so by explicitly marking your class with an Attribute and explaining why it should be inherited.
## Installation
### Running Psalm 5
```
composer require --dev cspray/phinal
vendor/bin/psalm-plugin enable cspray/phinal
```### Running Psalm 4
```
composer require --dev cspray/phinal:1.0.0
vendor/bin/psalm-plugin enable cspray/phinal
```## Code Examples
Good! :+1:
```php