Skip to content

Commit

Permalink
Merge pull request #4 from jaem3l/unfuck-readonly
Browse files Browse the repository at this point in the history
Unfuck readonly
  • Loading branch information
chr-hertel authored Jan 9, 2024
2 parents 51d9290 + 83cb37d commit 27d0ec5
Show file tree
Hide file tree
Showing 10 changed files with 764 additions and 872 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.phpunit.cache
vendor
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ So, if you are tired by the burden OSS maintainers are putting onto you by
* reducing the visibility of properties or methods to `private` or `protected`
* limiting capabilities by adding type declarations, return types or typed properties
* forcing you to pass method arguments by making them mandatory
* enforcing immutability with harsh `readonly` modifiers
* improving runtime stability

Jæm3l got you covered!
Expand All @@ -27,7 +28,7 @@ Your vendor library provides you a feature class like
```php
final class Example
{
private string $foo;
private readonly string $foo;

public function __construct(string $foo)
{
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"require": {
"php": "^8.1",
"composer-plugin-api": "^2.0",
"nikic/php-parser": "^4.14"
"nikic/php-parser": "^5.0"
},
"require-dev": {
"composer/composer": "^2.3",
"phpunit/phpunit": "^9.5"
"composer/composer": "^2.6",
"phpunit/phpunit": "^10.5"
},
"extra": {
"class": "Jæm3l\\Unfuck\\Plugin"
Expand Down
Loading

0 comments on commit 27d0ec5

Please sign in to comment.