diff --git a/composer.json b/composer.json index 471d32e..baddb95 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "auth0/login", + "name": "grininc/laravel-auth0", "description": "Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.", "license": "MIT", "type": "library", @@ -35,12 +35,12 @@ "source": "https://github.com/auth0/laravel-auth0" }, "require": { - "php": "^8.2", + "php": ">=8.1", "ext-json": "*", "auth0/auth0-php": "^8.10", - "illuminate/contracts": "^11", - "illuminate/http": "^11", - "illuminate/support": "^11", + "illuminate/contracts": "^10|^11", + "illuminate/http": "^10|^11", + "illuminate/support": "^10|^11", "psr-discovery/all": "^1", "psr/cache": "^2 || ^3" }, @@ -49,7 +49,7 @@ "friendsofphp/php-cs-fixer": "^3", "larastan/larastan": "^2", "mockery/mockery": "^1", - "orchestra/testbench": "^9", + "orchestra/testbench": "^8|^9", "pestphp/pest": "^2", "pestphp/pest-plugin-laravel": "^2", "phpstan/phpstan": "^1", @@ -62,7 +62,6 @@ "vimeo/psalm": "^5", "wikimedia/composer-merge-plugin": "^2" }, - "minimum-stability": "dev", "prefer-stable": true, "autoload": { "psr-4": { diff --git a/src/Users/UserContract.php b/src/Users/UserContract.php index b078f40..a6270ac 100644 --- a/src/Users/UserContract.php +++ b/src/Users/UserContract.php @@ -19,7 +19,7 @@ public function __construct(array $attributes = []); * * @param string $key */ - public function __get(string $key): mixed; + public function __get(string $key); /** * Dynamically set attributes on the model. @@ -27,14 +27,14 @@ public function __get(string $key): mixed; * @param mixed $value * @param string $key */ - public function __set(string $key, mixed $value): void; + public function __set(string $key, mixed $value); /** * Fill the model with an array of attributes. * * @param array $attributes */ - public function fill(array $attributes): self; + public function fill(array $attributes); /** * Get an attribute from the model. @@ -42,7 +42,7 @@ public function fill(array $attributes): self; * @param mixed $default * @param string $key */ - public function getAttribute(string $key, mixed $default = null): mixed; + public function getAttribute(string $key); /** * Set a given attribute on the model. @@ -50,5 +50,5 @@ public function getAttribute(string $key, mixed $default = null): mixed; * @param mixed $value * @param string $key */ - public function setAttribute(string $key, mixed $value): self; + public function setAttribute(string $key, $value); }