From 25b42e1bca32e3514ffa2014b4630e02c77f926a Mon Sep 17 00:00:00 2001 From: Eduar Bastidas Date: Mon, 13 Jun 2022 17:38:31 -0400 Subject: [PATCH] Added support for enums in PHP 8.1 --- CHANGELOG.md | 5 +++++ composer.json | 4 ++-- composer.lock | 47 +++++++++++++++++++++++++---------------------- 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a65e58..84cceab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `laravel-phpcs` will be documented in this file +## 1.7.0 - 2022-06-13 +- Added support to enums. +- Updated php_codesniffer to 3.7. +- Updated slevomat/coding-standard to dev-php81 to support enums. + ## 1.6.0 - 2022-05-20 - [Custom sniffs](https://github.com/slevomat/coding-standard) have been added to improve the Laravel standard. diff --git a/composer.json b/composer.json index 212d042..2a4629b 100644 --- a/composer.json +++ b/composer.json @@ -22,8 +22,8 @@ ], "require": { "php": "^7.4|^8.0", - "slevomat/coding-standard": "^7.2", - "squizlabs/php_codesniffer": "^3.6" + "slevomat/coding-standard": "dev-php81", + "squizlabs/php_codesniffer": "^3.7" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index f62899c..2bb0b67 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "81fddaa3eb47a922bb9d282708bf6866", + "content-hash": "00289925db20494f035d2dead8436ad5", "packages": [ { "name": "dealerdirect/phpcodesniffer-composer-installer", @@ -83,16 +83,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.5.1", + "version": "1.6.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "981cc368a216c988e862a75e526b6076987d1b50" + "reference": "76150ae7512439b4e6903db834e4a327596b617d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/981cc368a216c988e862a75e526b6076987d1b50", - "reference": "981cc368a216c988e862a75e526b6076987d1b50", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/76150ae7512439b4e6903db834e4a327596b617d", + "reference": "76150ae7512439b4e6903db834e4a327596b617d", "shasum": "" }, "require": { @@ -102,6 +102,7 @@ "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.1", "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "symfony/process": "^5.2" @@ -121,34 +122,34 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.5.1" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.6.2" }, - "time": "2022-05-05T11:32:40+00:00" + "time": "2022-06-10T09:29:33+00:00" }, { "name": "slevomat/coding-standard", - "version": "7.2.0", + "version": "dev-php81", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "b4f96a8beea515d2d89141b7b9ad72f526d84071" + "reference": "6c0af5071d8218f4b4ebac3c77ec316896c2ae56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/b4f96a8beea515d2d89141b7b9ad72f526d84071", - "reference": "b4f96a8beea515d2d89141b7b9ad72f526d84071", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/6c0af5071d8218f4b4ebac3c77ec316896c2ae56", + "reference": "6c0af5071d8218f4b4ebac3c77ec316896c2ae56", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": "^1.5.1", - "squizlabs/php_codesniffer": "^3.6.2" + "phpstan/phpdoc-parser": "^1.6.2", + "squizlabs/php_codesniffer": "^3.7.0" }, "require-dev": { "phing/phing": "2.17.3", "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.4.10|1.6.7", + "phpstan/phpstan": "1.4.10|1.7.12", "phpstan/phpstan-deprecation-rules": "1.0.0", "phpstan/phpstan-phpunit": "1.0.0|1.1.1", "phpstan/phpstan-strict-rules": "1.2.3", @@ -172,7 +173,7 @@ "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.2.0" + "source": "https://github.com/slevomat/coding-standard/tree/php81" }, "funding": [ { @@ -184,20 +185,20 @@ "type": "tidelift" } ], - "time": "2022-05-06T10:58:42+00:00" + "time": "2022-06-13T10:33:10+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.2", + "version": "3.7.0", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + "reference": "a2cd51b45bcaef9c1f2a4bda48f2dd2fa2b95563" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/a2cd51b45bcaef9c1f2a4bda48f2dd2fa2b95563", + "reference": "a2cd51b45bcaef9c1f2a4bda48f2dd2fa2b95563", "shasum": "" }, "require": { @@ -240,13 +241,15 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-12-12T21:44:58+00:00" + "time": "2022-06-13T06:31:38+00:00" } ], "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "slevomat/coding-standard": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": {