mirror of
				https://github.com/sitelease/sugar-cube-client.git
				synced 2025-10-31 12:02:30 +01:00 
			
		
		
		
	Fixed missing enum dependency
Used Taha Amin Ghafuri's (@tahaghafuri ) fork to replace the missing "cedx/enum" package with the "myclabs/php-enum" package
This commit is contained in:
		| @ -25,7 +25,7 @@ | ||||
|     "php": ">=7.2.0", | ||||
|     "ext-curl": "*", | ||||
|     "ext-json": "*", | ||||
|     "cedx/enum": "^7.4.0", | ||||
|     "myclabs/php-enum": "^1.8", | ||||
|     "guzzlehttp/guzzle": "~6.0" | ||||
|   }, | ||||
|   "require-dev": { | ||||
|  | ||||
| @ -1,11 +1,13 @@ | ||||
| <?php declare(strict_types=1); | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace Gitea\Model; | ||||
|  | ||||
| use Enum\{EnumTrait}; | ||||
| use MyCLabs\Enum\Enum; | ||||
|  | ||||
| /** Defines the state of a Gitea status. */ | ||||
| final class StatusState { | ||||
|     use EnumTrait; | ||||
| final class StatusState extends Enum { | ||||
|  | ||||
|     /** @var string The status is an error. */ | ||||
|     const error = 'error'; | ||||
|  | ||||
| @ -1,11 +1,10 @@ | ||||
| <?php declare(strict_types=1); | ||||
| namespace Gitea\Model; | ||||
|  | ||||
| use Enum\{EnumTrait}; | ||||
| use MyCLabs\Enum\Enum; | ||||
|  | ||||
| /** Defines the permission of a team. */ | ||||
| final class TeamPermission { | ||||
|     use EnumTrait; | ||||
| final class TeamPermission extends Enum { | ||||
|  | ||||
|     /** @var string The team has the administrator permission. */ | ||||
|     const admin = 'admin'; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user