Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
57c0a82
composer require phpstan/phpstan phpstan/extension-installer --dev -W
fadrian06 Nov 5, 2025
7e14e5f
add phpstan badge to readme
fadrian06 Nov 5, 2025
059f2c7
composer exec phpstan -- --generate-baseline
fadrian06 Nov 5, 2025
403f60f
remove unused $testUser in user.test.php
fadrian06 Nov 6, 2025
82930a9
fix Auth @param and @returns following phpstan l2
fadrian06 Nov 6, 2025
da96e8a
change Leaf\DB to Leaf\Db
fadrian06 Nov 6, 2025
2abe745
ensure $sessionLifetime will be integer
fadrian06 Nov 6, 2025
5ce34ee
fix $roles param in UsesRoles::getRolePermissions
fadrian06 Nov 6, 2025
8e3333b
remove undefined parameter $subcription in UsesSubscriptions::subscri…
fadrian06 Nov 6, 2025
c6df37b
allow null in Auth::$user
fadrian06 Nov 6, 2025
fdec2b9
todo: rewrite the test, Auth::update doesn't returns an array
fadrian06 Nov 6, 2025
3e8e733
if !$this->user() is true, user is not authenticated, else php checks…
fadrian06 Nov 6, 2025
63a6568
composer require leafs/leaf league/oauth2-google --dev -W
fadrian06 Nov 6, 2025
c080d0f
improve docblocks typehinting with phpstan l6
fadrian06 Nov 6, 2025
b94245d
remove implicit false to string conversion in User::__toString
fadrian06 Nov 6, 2025
857e233
composer require leafs/billing --dev -W
fadrian06 Nov 6, 2025
3c51d4b
fix phpstan l8 warnings for possibly unset keys of UsesSubscriptions:…
fadrian06 Nov 6, 2025
9e2367d
fix typo on UsesSubscriptions::cancelSubscription
fadrian06 Nov 6, 2025
1fc0c86
fix many errors of phpstan l8
fadrian06 Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<br><br>
</p>

![PHPStan: Level 8](https://img.shields.io/badge/PHPStan-level%208-brightgreen.svg?style=flat)
[![Latest Stable Version](https://poser.pugx.org/leafs/auth/v/stable)](https://packagist.org/packages/leafs/auth)
[![Total Downloads](https://poser.pugx.org/leafs/auth/downloads)](https://packagist.org/packages/leafs/auth)
[![License](https://poser.pugx.org/leafs/auth/license)](https://packagist.org/packages/leafs/auth)
Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,24 @@
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
"pestphp/pest-plugin": true,
"phpstan/extension-installer": true
}
},
"require-dev": {
"pestphp/pest": "^1.0 | ^2.0",
"friendsofphp/php-cs-fixer": "^3.64",
"leafs/alchemy": "*"
"leafs/alchemy": "*",
"phpstan/phpstan": "^2.1",
"phpstan/extension-installer": "^1.4",
"leafs/leaf": "^4.4",
"league/oauth2-google": "^4.0",
"leafs/billing": "^0.2.0"
},
"scripts": {
"alchemy": "./vendor/bin/alchemy setup",
"test": "./vendor/bin/alchemy setup --test",
"lint": "./vendor/bin/alchemy setup --lint",
"actions": "./vendor/bin/alchemy setup --actions"
}
}
}
Loading