Explorar el Código

CI fix warnings (#6780)

Alexandre Alapetite hace 1 año
padre
commit
aefac3efb9
Se han modificado 3 ficheros con 10 adiciones y 10 borrados
  1. 1 1
      composer.json
  2. 5 5
      composer.lock
  3. 4 4
      tests/app/Models/SearchTest.php

+ 1 - 1
composer.json

@@ -70,7 +70,7 @@
         "phpcbf": "phpcbf . -p -s",
         "phpstan": "phpstan analyse --memory-limit 512M .",
         "phpstan-next": "phpstan analyse --memory-limit 512M -c phpstan-next.neon .",
-        "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --display-notices ./tests",
+        "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --display-notices --display-phpunit-deprecations ./tests",
         "translations": "cli/manipulate.translation.php -a format",
         "test": [
             "@php-lint",

+ 5 - 5
composer.lock

@@ -245,16 +245,16 @@
         },
         {
             "name": "phpstan/phpstan",
-            "version": "1.12.1",
+            "version": "1.12.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/phpstan/phpstan.git",
-                "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2"
+                "reference": "0ca1c7bb55fca8fe6448f16fff0f311ccec960a1"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2",
-                "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0ca1c7bb55fca8fe6448f16fff0f311ccec960a1",
+                "reference": "0ca1c7bb55fca8fe6448f16fff0f311ccec960a1",
                 "shasum": ""
             },
             "require": {
@@ -299,7 +299,7 @@
                     "type": "github"
                 }
             ],
-            "time": "2024-09-03T19:55:22+00:00"
+            "time": "2024-09-05T16:09:28+00:00"
         },
         {
             "name": "phpstan/phpstan-phpunit",

+ 4 - 4
tests/app/Models/SearchTest.php

@@ -454,7 +454,7 @@ class SearchTest extends PHPUnit\Framework\TestCase {
 	}
 
 	/** @return array<array<mixed>> */
-	public function provideRegexPostreSQL(): array {
+	public static function provideRegexPostreSQL(): array {
 		return [
 			[
 				'intitle:/^ab$/',
@@ -522,7 +522,7 @@ class SearchTest extends PHPUnit\Framework\TestCase {
 	}
 
 	/** @return array<array<mixed>> */
-	public function provideRegexMariaDB(): array {
+	public static function provideRegexMariaDB(): array {
 		return [
 			[
 				'intitle:/^ab$/',
@@ -555,7 +555,7 @@ class SearchTest extends PHPUnit\Framework\TestCase {
 	}
 
 	/** @return array<array<mixed>> */
-	public function provideRegexMySQL(): array {
+	public static function provideRegexMySQL(): array {
 		return [
 			[
 				'intitle:/^ab$/',
@@ -586,7 +586,7 @@ class SearchTest extends PHPUnit\Framework\TestCase {
 	}
 
 	/** @return array<array<mixed>> */
-	public function provideRegexSQLite(): array {
+	public static function provideRegexSQLite(): array {
 		return [
 			[
 				'intitle:/^ab$/',