diff --git a/README.MD b/README.MD index 19bf7fc..ef334d0 100644 --- a/README.MD +++ b/README.MD @@ -6,10 +6,9 @@ [![Latest Unstable Version](https://poser.pugx.org/platine-php/oauth2/v/unstable)](https://packagist.org/packages/platine-php/oauth2) [![Total Downloads](https://poser.pugx.org/platine-php/oauth2/downloads)](https://packagist.org/packages/platine-php/oauth2) [![License](https://poser.pugx.org/platine-php/oauth2/license)](https://packagist.org/packages/platine-php/oauth2) -![Build Status](https://github.com/platine-php/oauth2/actions/workflows/ci.yml/badge.svg) [![Quality Score](https://img.shields.io/scrutinizer/g/platine-php/oauth2.svg?style=flat-square)](https://scrutinizer-ci.com/g/platine-php/oauth2) -[![Maintainability](https://app.codacy.com/project/badge/Grade/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) -[![Test Coverage](https://app.codacy.com/project/badge/Coverage/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) +[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage) ### Requirements - **PHP >= 7.4**, **PHP 8** diff --git a/composer.json b/composer.json index e51a825..b19e7ab 100644 --- a/composer.json +++ b/composer.json @@ -52,9 +52,6 @@ }, "extra": { - "branch-alias": { - "dev-develop": "^1.0" - }, "platine": { "migration": [ "platine/migrations/" diff --git a/src/Entity/BaseToken.php b/src/Entity/BaseToken.php index 310b639..8d26aec 100644 --- a/src/Entity/BaseToken.php +++ b/src/Entity/BaseToken.php @@ -224,7 +224,7 @@ protected static function createNew( if (is_array($scopes)) { $scopes = array_map(fn($scope) => (string) $scope, $scopes); } - + $token = new static(); $token->token = bin2hex(random_bytes(20)); $token->owner = $owner;