Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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