From fabbc2b278414d6c82c9d87a4e60d7689a871e0c Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 13:09:37 +0200 Subject: [PATCH 01/15] updating year --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 30d7b83..bfcf021 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 odan +Copyright (c) 2025 odan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From c910fa5475dd39f93546057e5a554638723f0756 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 13:12:56 +0200 Subject: [PATCH 02/15] upgrading squizlabs/php_codesniffer from ^3 to ^4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 67cdc24..8a799ad 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "overtrue/phplint": "^2.3", "phpunit/phpunit": "^9", "phpstan/phpstan": "^1", - "squizlabs/php_codesniffer": "^3.5" + "squizlabs/php_codesniffer": "^4" }, "scripts": { "check": [ From de90fee9e4c673fe423acf83e928bdba244884b4 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 13:24:13 +0200 Subject: [PATCH 03/15] upgrading from phpstan 1x to 2x and his config --- composer.json | 4 ++-- phpstan.neon | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8a799ad..fe9c8e0 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "friendsofphp/php-cs-fixer": "^3", "overtrue/phplint": "^2.3", "phpunit/phpunit": "^9", - "phpstan/phpstan": "^1", + "phpstan/phpstan": "^2", "squizlabs/php_codesniffer": "^4" }, "scripts": { @@ -30,7 +30,7 @@ "cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php", "cs:fix": "php-cs-fixer fix --config=.cs.php", "lint": "phplint ./ --exclude=vendor --no-interaction --no-cache", - "phpstan": "phpstan analyse src tests --level=max -c phpstan.neon --no-progress --ansi", + "phpstan": "phpstan analyse -c phpstan.neon --no-progress --ansi", "sniffer:check": "phpcs --standard=phpcs.xml", "sniffer:fix": "phpcbf --standard=phpcs.xml", "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always", diff --git a/phpstan.neon b/phpstan.neon index e69de29..51e3685 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -0,0 +1,5 @@ +parameters: + level: 8 + paths: + - src + - tests \ No newline at end of file From 0d133e05f5b959bbed415fdbfe70173efd2feefd Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 14:38:36 +0200 Subject: [PATCH 04/15] updating config for "showing less problems" --- .cs.php | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.cs.php b/.cs.php index fe2a42c..ea4cfdd 100644 --- a/.cs.php +++ b/.cs.php @@ -1,20 +1,25 @@ setUsingCache(false) ->setRiskyAllowed(true) - //->setCacheFile(__DIR__ . '/.php_cs.cache') ->setRules([ '@PSR1' => true, '@PSR2' => true, '@Symfony' => true, 'psr_autoloading' => true, - 'yoda_style' => false, + 'yoda_style' => [ + 'equal' => false, + 'identical' => false, + 'less_and_greater' => false + ], 'array_syntax' => ['syntax' => 'short'], 'list_syntax' => ['syntax' => 'short'], 'concat_space' => ['spacing' => 'one'], 'cast_spaces' => ['space' => 'none'], - 'compact_nullable_typehint' => true, + 'compact_nullable_type_declaration' => true, 'increment_style' => ['style' => 'post'], 'declare_equal_normalize' => ['space' => 'single'], 'echo_tag_syntax' => ['format' => 'long'], @@ -22,7 +27,10 @@ 'phpdoc_align' => false, 'phpdoc_add_missing_param_annotation' => ['only_untyped' => false], 'phpdoc_order' => true, // psr-5 + 'phpdoc_no_useless_inheritdoc' => false, 'phpdoc_no_empty_return' => false, + 'phpdoc_to_comment' => false, + 'no_superfluous_phpdoc_tags' => false, 'align_multiline_comment' => true, // psr-5 'general_phpdoc_annotation_remove' => [ 'annotations' => [ @@ -30,10 +38,16 @@ 'package', ], ], + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_constants' => null, + 'import_functions' => null + ], ]) ->setFinder(PhpCsFixer\Finder::create() ->in(__DIR__ . '/src') ->in(__DIR__ . '/tests') ->name('*.php') ->ignoreDotFiles(true) - ->ignoreVCS(true)); + ->ignoreVCS(true) +); From 2ff49a056f64ba20b11d7e4bb8f35308dbac3e07 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 16:16:22 +0200 Subject: [PATCH 05/15] upgrading phpunit from ^9 to ^12 --- composer.json | 9 ++++++--- phpunit.xml | 9 ++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index fe9c8e0..43b88fc 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3", "overtrue/phplint": "^2.3", - "phpunit/phpunit": "^9", + "phpunit/phpunit": "^12", "phpstan/phpstan": "^2", "squizlabs/php_codesniffer": "^4" }, @@ -33,8 +33,11 @@ "phpstan": "phpstan analyse -c phpstan.neon --no-progress --ansi", "sniffer:check": "phpcs --standard=phpcs.xml", "sniffer:fix": "phpcbf --standard=phpcs.xml", - "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always", - "test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage" + "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations", + "test:coverage": [ + "@putenv XDEBUG_MODE=coverage", + "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text" + ] }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 3c3de51..cadc720 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -3,15 +3,14 @@ bootstrap="vendor/autoload.php" colors="true" backupGlobals="false" - backupStaticAttributes="false" - timeoutForLargeTests="900" - xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.5/phpunit.xsd" + > tests - + src @@ -19,5 +18,5 @@ vendor build - + From dbabd2ff28eebeea6abefe87900b526cb78ce256 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 16:17:53 +0200 Subject: [PATCH 06/15] so that the test is passed... --- tests/VideoTypeDetectorTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/VideoTypeDetectorTest.php b/tests/VideoTypeDetectorTest.php index 280b97b..77f1254 100644 --- a/tests/VideoTypeDetectorTest.php +++ b/tests/VideoTypeDetectorTest.php @@ -2,6 +2,7 @@ namespace Selective\VideoType\Test; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Selective\VideoType\Exception\VideoTypeDetectorException; use Selective\VideoType\Provider\DefaultVideoProvider; @@ -34,12 +35,11 @@ private function createDetector(): VideoTypeDetector /** * Test. * - * @dataProvider providerGetVideoTypeFromFile - * * @param string $file The file * @param string $format The expected format * @param string $mime The expected mime type */ + #[DataProvider('providerGetVideoTypeFromFile')] public function testGetVideoTypeFromFile(string $file, string $format, string $mime): void { $this->assertFileExists($file); @@ -58,7 +58,7 @@ public function testGetVideoTypeFromFile(string $file, string $format, string $m * * @return array> The test data */ - public function providerGetVideoTypeFromFile(): array + public static function providerGetVideoTypeFromFile(): array { return [ 'AVI' => [__DIR__ . '/videos/avi.avi', VideoFormat::AVI, VideoMimeType::VIDEO_AVI], From d67c4efc80614f32d537e81e55f54251300fe7fb Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Fri, 17 Oct 2025 16:35:30 +0200 Subject: [PATCH 07/15] upgrading uvertrue/phplint from ^2 to ^9 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 43b88fc..6857d2f 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3", - "overtrue/phplint": "^2.3", + "overtrue/phplint": "^9", "phpunit/phpunit": "^12", "phpstan/phpstan": "^2", "squizlabs/php_codesniffer": "^4" From 94611dd520921e516f80f9e6a9df70afa4c58d72 Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Mon, 20 Oct 2025 16:59:32 +0200 Subject: [PATCH 08/15] added php versions 8.2, 8.3, 8.4 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f49d18b..b3ea449 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.3', '7.4', '8.0', '8.1'] + php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: From aaf882bc79a0dd750a979baa433daed75949b51d Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Tue, 21 Oct 2025 09:38:14 +0200 Subject: [PATCH 09/15] Revert "added php versions 8.2, 8.3, 8.4" This reverts commit 94611dd520921e516f80f9e6a9df70afa4c58d72. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3ea449..f49d18b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] + php-versions: ['7.3', '7.4', '8.0', '8.1'] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: From e175608d44844fa7a4e4f5f71461ee35b78a7d3f Mon Sep 17 00:00:00 2001 From: heinrichschiller Date: Tue, 21 Oct 2025 09:48:37 +0200 Subject: [PATCH 10/15] Update to supported PHP versions --- .github/workflows/build.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f49d18b..83e67fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['7.3', '7.4', '8.0', '8.1'] + php-versions: ['8.1', '8.2', '8.3', '8.4'] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: diff --git a/README.md b/README.md index 91d3f97..e112997 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Video type detection library for PHP. ## Requirements -* PHP 7.2+ +* PHP 8.1 - 8.4 ## Installation From d5d4b4f3cb5508a95f6130ebc8ca91571c837047 Mon Sep 17 00:00:00 2001 From: odan Date: Fri, 7 Nov 2025 15:29:20 +0100 Subject: [PATCH 11/15] Fix cs --- src/VideoType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VideoType.php b/src/VideoType.php index 365221a..87e1815 100644 --- a/src/VideoType.php +++ b/src/VideoType.php @@ -68,7 +68,7 @@ public function getMimeType(): string */ public function equals(VideoType $other): bool { - return $this->format === $other->format && - $this->mime === $other->mime; + return $this->format === $other->format + && $this->mime === $other->mime; } } From fbf66b93c1161a2e872dfeb292775d86a5b17c38 Mon Sep 17 00:00:00 2001 From: odan Date: Fri, 7 Nov 2025 15:44:02 +0100 Subject: [PATCH 12/15] Update build --- .github/workflows/build.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83e67fc..671ab4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,12 +8,12 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest] - php-versions: ['8.1', '8.2', '8.3', '8.4'] + php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5'] name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v5 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -28,14 +28,25 @@ jobs: - name: Check Composer Version run: composer -V - - name: Check PHP Extensions - run: php -m - - name: Validate composer.json and composer.lock run: composer validate - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest + run: composer update --prefer-dist --no-progress --no-suggest + + - name: Run PHP Coding Standards Fixer + run: composer cs:check + + - name: Run PHP CodeSniffer + run: composer sniffer:check + + - name: Run PHPStan + run: composer stan + + - name: Run tests + if: ${{ matrix.php-versions != '8.4' }} + run: composer test - - name: Run test suite - run: composer check + - name: Run tests with coverage + if: ${{ matrix.php-versions == '8.4' }} + run: composer test:coverage From 73304b0106e158578ebb9ea16e6e48572e8be2a1 Mon Sep 17 00:00:00 2001 From: odan Date: Fri, 7 Nov 2025 15:58:07 +0100 Subject: [PATCH 13/15] Update build --- .cs.php | 125 +++++++++++++++++++++++++++++++------------------- .editorconfig | 22 +++++++++ composer.json | 55 +++++++++++----------- 3 files changed, 127 insertions(+), 75 deletions(-) create mode 100644 .editorconfig diff --git a/.cs.php b/.cs.php index ea4cfdd..c0e1811 100644 --- a/.cs.php +++ b/.cs.php @@ -3,51 +3,80 @@ use PhpCsFixer\Config; return (new Config()) - ->setUsingCache(false) - ->setRiskyAllowed(true) - ->setRules([ - '@PSR1' => true, - '@PSR2' => true, - '@Symfony' => true, - 'psr_autoloading' => true, - 'yoda_style' => [ - 'equal' => false, - 'identical' => false, - 'less_and_greater' => false - ], - 'array_syntax' => ['syntax' => 'short'], - 'list_syntax' => ['syntax' => 'short'], - 'concat_space' => ['spacing' => 'one'], - 'cast_spaces' => ['space' => 'none'], - 'compact_nullable_type_declaration' => true, - 'increment_style' => ['style' => 'post'], - 'declare_equal_normalize' => ['space' => 'single'], - 'echo_tag_syntax' => ['format' => 'long'], - 'protected_to_private' => false, - 'phpdoc_align' => false, - 'phpdoc_add_missing_param_annotation' => ['only_untyped' => false], - 'phpdoc_order' => true, // psr-5 - 'phpdoc_no_useless_inheritdoc' => false, - 'phpdoc_no_empty_return' => false, - 'phpdoc_to_comment' => false, - 'no_superfluous_phpdoc_tags' => false, - 'align_multiline_comment' => true, // psr-5 - 'general_phpdoc_annotation_remove' => [ - 'annotations' => [ - 'author', - 'package', - ], - ], - 'global_namespace_import' => [ - 'import_classes' => true, - 'import_constants' => null, - 'import_functions' => null - ], - ]) - ->setFinder(PhpCsFixer\Finder::create() - ->in(__DIR__ . '/src') - ->in(__DIR__ . '/tests') - ->name('*.php') - ->ignoreDotFiles(true) - ->ignoreVCS(true) -); + ->setUsingCache(false) + ->setRiskyAllowed(true) + ->setRules( + [ + '@PSR1' => true, + '@PSR2' => true, + // custom rules + 'psr_autoloading' => true, + 'align_multiline_comment' => ['comment_type' => 'phpdocs_only'], // psr-5 + 'phpdoc_to_comment' => false, + 'no_superfluous_phpdoc_tags' => false, + 'array_indentation' => true, + 'array_syntax' => ['syntax' => 'short'], + 'cast_spaces' => ['space' => 'none'], + 'concat_space' => ['spacing' => 'one'], + 'compact_nullable_type_declaration' => true, + 'declare_equal_normalize' => ['space' => 'single'], + 'general_phpdoc_annotation_remove' => [ + 'annotations' => [ + 'author', + 'package', + ], + ], + 'increment_style' => ['style' => 'post'], + 'list_syntax' => ['syntax' => 'short'], + 'echo_tag_syntax' => ['format' => 'long'], + 'phpdoc_add_missing_param_annotation' => ['only_untyped' => false], + 'phpdoc_align' => false, + 'phpdoc_no_empty_return' => false, + 'phpdoc_order' => true, // psr-5 + 'phpdoc_no_useless_inheritdoc' => false, + 'protected_to_private' => false, + 'yoda_style' => [ + 'equal' => false, + 'identical' => false, + 'less_and_greater' => false + ], + 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], + 'ordered_imports' => [ + 'sort_algorithm' => 'alpha', + 'imports_order' => ['class', 'const', 'function'], + ], + 'single_line_throw' => false, + 'declare_strict_types' => false, + 'blank_line_between_import_groups' => true, + 'fully_qualified_strict_types' => true, + 'no_null_property_initialization' => false, + 'nullable_type_declaration_for_default_null_value' => false, + 'operator_linebreak' => [ + 'only_booleans' => true, + 'position' => 'beginning', + ], + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_constants' => null, + 'import_functions' => null + ], + 'class_definition' => [ + 'space_before_parenthesis' => true, + ], + 'trailing_comma_in_multiline' => [ + 'after_heredoc' => true, + 'elements' => ['array_destructuring', 'arrays', 'match'] + ], + 'function_declaration' => [ + 'closure_fn_spacing' => 'none', + ] + ] + ) + ->setFinder( + PhpCsFixer\Finder::create() + ->in(__DIR__ . '/src') + ->in(__DIR__ . '/tests') + ->name('*.php') + ->ignoreDotFiles(true) + ->ignoreVCS(true) + ); diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..930bd09 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +end_of_line = lf + +[composer.json] +indent_size = 4 + +[*.js] +indent_size = 4 + +[*.neon] +indent_size = 4 +indent_style = tab + +[*.xml] +indent_size = 4 + +[*.yml] +indent_size = 2 \ No newline at end of file diff --git a/composer.json b/composer.json index 6857d2f..200095b 100644 --- a/composer.json +++ b/composer.json @@ -1,44 +1,23 @@ { "name": "selective/video-type", - "type": "library", "description": "Video type detection", + "license": "MIT", + "type": "library", "keywords": [ "video", "type", "format" ], "homepage": "https://github.com/selective-php/video-type", - "license": "MIT", "require": { - "php": "^7.3 || ^8.0" + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3", - "overtrue/phplint": "^9", - "phpunit/phpunit": "^12", "phpstan/phpstan": "^2", + "phpunit/phpunit": "^10", "squizlabs/php_codesniffer": "^4" }, - "scripts": { - "check": [ - "@lint", - "@cs:check", - "@sniffer:check", - "@phpstan", - "@test:coverage" - ], - "cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php", - "cs:fix": "php-cs-fixer fix --config=.cs.php", - "lint": "phplint ./ --exclude=vendor --no-interaction --no-cache", - "phpstan": "phpstan analyse -c phpstan.neon --no-progress --ansi", - "sniffer:check": "phpcs --standard=phpcs.xml", - "sniffer:fix": "phpcbf --standard=phpcs.xml", - "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations", - "test:coverage": [ - "@putenv XDEBUG_MODE=coverage", - "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text" - ] - }, "autoload": { "psr-4": { "Selective\\VideoType\\": "src" @@ -50,7 +29,29 @@ } }, "config": { - "sort-packages": true, - "process-timeout": 0 + "process-timeout": 0, + "sort-packages": true + }, + "scripts": { + "cs:check": [ + "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes" + ], + "cs:fix": [ + "php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes" + ], + "sniffer:check": "phpcs --standard=phpcs.xml", + "sniffer:fix": "phpcbf --standard=phpcs.xml", + "stan": "phpstan analyse -c phpstan.neon --no-progress --ansi", + "test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --no-coverage", + "test:all": [ + "@cs:check", + "@sniffer:check", + "@stan", + "@test" + ], + "test:coverage": [ + "@putenv XDEBUG_MODE=coverage", + "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text" + ] } } From 5379c0e34693f90258cae10ef900f3bf573dd881 Mon Sep 17 00:00:00 2001 From: odan Date: Fri, 7 Nov 2025 16:06:25 +0100 Subject: [PATCH 14/15] Update build --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 671ab4c..b833ac8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,8 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - extensions: mbstring, pdo, pdo_mysql, intl, zip - coverage: none + extensions: mbstring, intl, zip + coverage: xdebug - name: Check PHP Version run: php -v From 417a7d392156006c603c695a6b82e8aafd3614da Mon Sep 17 00:00:00 2001 From: odan Date: Fri, 7 Nov 2025 16:09:31 +0100 Subject: [PATCH 15/15] Update readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e112997..b2709c3 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,8 @@ Video type detection library for PHP. [![Latest Version on Packagist](https://img.shields.io/github/release/selective-php/video-type.svg?style=flat-square)](https://packagist.org/packages/selective/video-type) -[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) +[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) [![build](https://github.com/selective-php/video-type/workflows/build/badge.svg)](https://github.com/selective-php/video-type/actions) -[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/selective-php/video-type.svg?style=flat-square)](https://scrutinizer-ci.com/g/selective-php/video-type/code-structure) -[![Quality Score](https://img.shields.io/scrutinizer/quality/g/selective-php/video-type.svg?style=flat-square)](https://scrutinizer-ci.com/g/selective-php/video-type/?branch=master) [![Total Downloads](https://img.shields.io/packagist/dt/selective/video-type.svg?style=flat-square)](https://packagist.org/packages/selective/video-type/stats) @@ -35,7 +33,7 @@ Video type detection library for PHP. ## Requirements -* PHP 8.1 - 8.4 +* PHP 8.1 - 8.5 ## Installation