mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 13:51:44 +00:00
- Install phpstan/phpstan, add phpstan.neon at level 5 targeting PHP 8.3 - Add phpstan-bootstrap.php stubs for Laravel helper functions (app, config, config_path, app_path, session) unavailable in standalone packages - Fix CartCondition::setOrder() - removed incorrect @return int (method is void) - Fix CartCondition::getCalculatedValue() - removed incorrect @return mixed PHPDoc - Fix Cart::condition() - remove redundant instanceof check the type system already guarantees - Fix Cart::fireEvent() - remove array_values() on already-list literal array - Fix ItemCollection - add @property annotations for magic __get properties - Fix ItemCollection::getAssociatedModel() - correct @return bool to @return mixed - Fix ItemCollection::getConditions() - remove dead is_array && !instanceof check - Fix Validator - add @method stub so PHPStan resolves make() through __callStatic - Add ignoreErrors for trait.unused (HasCart designed for external Livewire use) - Add ignoreErrors for round() mode mismatch (PHPStan 2.x PHP 8.4 stubs bug) - Add phpstan step to CI (PHP 8.3 only, matches phpVersion config)
63 lines
1.3 KiB
JSON
63 lines
1.3 KiB
JSON
{
|
|
"name": "wearepixel/laravel-cart",
|
|
"version": "2.1.1",
|
|
"description": "A cart implementation for Laravel",
|
|
"keywords": [
|
|
"laravel",
|
|
"shopping cart",
|
|
"cart"
|
|
],
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Darryl Fernandez",
|
|
"email": "engrdarrylfernandez@gmail.com"
|
|
},
|
|
{
|
|
"name": "Joel Male",
|
|
"email": "joel@joelmale.com"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=8.3",
|
|
"illuminate/support": "^11.0|^12.0|^13.0",
|
|
"illuminate/auth": "^11.0|^12.0|^13.0",
|
|
"illuminate/container": "^11.0|^12.0|^13.0",
|
|
"illuminate/database": "^11.0|^12.0|^13.0",
|
|
"illuminate/validation": "^11.0|^12.0|^13.0"
|
|
},
|
|
"require-dev": {
|
|
"mockery/mockery": "^2.0",
|
|
"laravel/pint": "^1.21",
|
|
"pestphp/pest": "^4.7",
|
|
"larapack/dd": "dev-master",
|
|
"phpstan/phpstan": "2.2.x-dev"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Wearepixel\\Cart\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Tests\\": "tests/"
|
|
}
|
|
},
|
|
"minimum-stability": "dev",
|
|
"extra": {
|
|
"laravel": {
|
|
"providers": [
|
|
"Wearepixel\\Cart\\CartServiceProvider"
|
|
],
|
|
"aliases": {
|
|
"Cart": "Wearepixel\\Cart\\Facades\\CartFacade"
|
|
}
|
|
}
|
|
},
|
|
"config": {
|
|
"allow-plugins": {
|
|
"pestphp/pest-plugin": true
|
|
}
|
|
}
|
|
}
|