diff --git a/README.md b/README.md index 4cb40c2..51f9ea4 100755 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio ## Requirements -* PHP 8.1 -* PHP extension: php8.1-dev php8.1-cli php8.1-common php8.1-mysql php8.1-pgsql php8.1-xdebug php8.1-opcache php8.1-pdo php8.1-sqlite php8.1-mbstring php8.1-curl php8.1-imap php8.1-bcmath php8.1-zip php8.1-dom php8.1-xml php8.1-phar php8.1-gd php-pear +* PHP 8.2 +* PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear * apache2 (recommended) or nginx * mysql-server (recommended) or postgresql postgresql-contrib * Tools: tesseract-ocr, pdftotext, pdftoppm diff --git a/composer.json b/composer.json index 2e47a08..7bd5508 100755 --- a/composer.json +++ b/composer.json @@ -8,15 +8,15 @@ } ], "require-dev": { - "phpunit/phpunit": ">=9.4", - "friendsofphp/php-cs-fixer": ">=3.8", - "squizlabs/php_codesniffer": ">=3.6", + "phpunit/phpunit": ">=11.0", + "friendsofphp/php-cs-fixer": ">=3.51", + "squizlabs/php_codesniffer": ">=3.7", "phpmd/phpmd": ">=2.9", - "phpstan/phpstan": ">=1.8.6", + "phpstan/phpstan": ">=1.10.62", "phan/phan": ">=3.2.6", "phploc/phploc": ">=7.0", "phpmetrics/phpmetrics": ">=2.8", - "rector/rector": ">=0.18.0" + "rector/rector": ">=1.0.3" }, "minimum-stability": "dev", "prefer-stable": true diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 9a456e8..eb14a84 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -93,7 +93,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Controller\ApiController + * @covers \Modules\Comments\Controller\ApiController * @group module */ public function testApiCommentListCU() : void @@ -124,7 +124,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Controller\ApiController + * @covers \Modules\Comments\Controller\ApiController * @group module */ public function testApiCommentCRU() : void @@ -190,7 +190,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Controller\ApiController + * @covers \Modules\Comments\Controller\ApiController * @group module */ public function testApiCommentCreateInvalidData() : void @@ -206,7 +206,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Controller\ApiController + * @covers \Modules\Comments\Controller\ApiController * @group module */ public function testApiCommentVoteCreateInvalidData() : void @@ -222,7 +222,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Controller\ApiController + * @covers \Modules\Comments\Controller\ApiController * @group module */ public function testApiCommentVoteCreate() : void diff --git a/tests/Models/CommentListMapperTest.php b/tests/Models/CommentListMapperTest.php index 9514241..e40a91d 100755 --- a/tests/Models/CommentListMapperTest.php +++ b/tests/Models/CommentListMapperTest.php @@ -25,7 +25,7 @@ use Modules\Comments\Models\CommentListMapper; final class CommentListMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Comments\Models\CommentListMapper + * @covers \Modules\Comments\Models\CommentListMapper * @group module */ public function testCRUD() : void diff --git a/tests/Models/CommentListTest.php b/tests/Models/CommentListTest.php index 4c430bd..f95ec0d 100755 --- a/tests/Models/CommentListTest.php +++ b/tests/Models/CommentListTest.php @@ -33,7 +33,7 @@ final class CommentListTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\CommentList + * @covers \Modules\Comments\Models\CommentList * @group module */ public function testDefault() : void @@ -43,7 +43,7 @@ final class CommentListTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\CommentList + * @covers \Modules\Comments\Models\CommentList * @group module */ public function testGetSet() : void diff --git a/tests/Models/CommentMapperTest.php b/tests/Models/CommentMapperTest.php index 8e473e6..43fafc3 100755 --- a/tests/Models/CommentMapperTest.php +++ b/tests/Models/CommentMapperTest.php @@ -25,7 +25,7 @@ use Modules\Comments\Models\CommentMapper; final class CommentMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Comments\Models\CommentMapper + * @covers \Modules\Comments\Models\CommentMapper * @group module */ public function testCRUD() : void diff --git a/tests/Models/CommentTest.php b/tests/Models/CommentTest.php index 8fca49c..ae54ad4 100755 --- a/tests/Models/CommentTest.php +++ b/tests/Models/CommentTest.php @@ -35,7 +35,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testDefault() : void @@ -53,7 +53,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testCreatedByInputOutput() : void @@ -63,7 +63,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testListInputOutput() : void @@ -73,7 +73,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testRefInputOutput() : void @@ -86,7 +86,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testTitleInputOutput() : void @@ -96,7 +96,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testContentInputOutput() : void @@ -106,7 +106,7 @@ final class CommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\Comment + * @covers \Modules\Comments\Models\Comment * @group module */ public function testSerialize() : void diff --git a/tests/Models/CommentVoteMapperTest.php b/tests/Models/CommentVoteMapperTest.php index 7cc342a..7b1a118 100755 --- a/tests/Models/CommentVoteMapperTest.php +++ b/tests/Models/CommentVoteMapperTest.php @@ -28,7 +28,7 @@ use Modules\Comments\Models\CommentVoteMapper; final class CommentVoteMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Comments\Models\CommentVoteMapper + * @covers \Modules\Comments\Models\CommentVoteMapper * @group module */ public function testCR() : void diff --git a/tests/Models/CommentVoteTest.php b/tests/Models/CommentVoteTest.php index c2257d8..a976a15 100755 --- a/tests/Models/CommentVoteTest.php +++ b/tests/Models/CommentVoteTest.php @@ -32,7 +32,7 @@ final class CommentVoteTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\CommentVote + * @covers \Modules\Comments\Models\CommentVote * @group module */ public function testDefault() : void @@ -45,7 +45,7 @@ final class CommentVoteTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\CommentVote + * @covers \Modules\Comments\Models\CommentVote * @group module */ public function testScoreInputOutput() : void @@ -55,7 +55,7 @@ final class CommentVoteTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\CommentVote + * @covers \Modules\Comments\Models\CommentVote * @group module */ public function testCommentInputOutput() : void diff --git a/tests/Models/NullCommentListTest.php b/tests/Models/NullCommentListTest.php index da44eb3..3225493 100755 --- a/tests/Models/NullCommentListTest.php +++ b/tests/Models/NullCommentListTest.php @@ -22,7 +22,7 @@ use Modules\Comments\Models\NullCommentList; final class NullCommentListTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Comments\Models\NullCommentList + * @covers \Modules\Comments\Models\NullCommentList * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullCommentListTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\NullCommentList + * @covers \Modules\Comments\Models\NullCommentList * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullCommentListTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\NullCommentList + * @covers \Modules\Comments\Models\NullCommentList * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullCommentTest.php b/tests/Models/NullCommentTest.php index 79271e3..f5d6c7a 100755 --- a/tests/Models/NullCommentTest.php +++ b/tests/Models/NullCommentTest.php @@ -22,7 +22,7 @@ use Modules\Comments\Models\NullComment; final class NullCommentTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Comments\Models\NullComment + * @covers \Modules\Comments\Models\NullComment * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullCommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\NullComment + * @covers \Modules\Comments\Models\NullComment * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullCommentTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\NullComment + * @covers \Modules\Comments\Models\NullComment * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullCommentVoteTest.php b/tests/Models/NullCommentVoteTest.php index 1cd66b3..6322411 100755 --- a/tests/Models/NullCommentVoteTest.php +++ b/tests/Models/NullCommentVoteTest.php @@ -22,7 +22,7 @@ use Modules\Comments\Models\NullCommentVote; final class NullCommentVoteTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Comments\Models\NullCommentVote + * @covers \Modules\Comments\Models\NullCommentVote * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullCommentVoteTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\NullCommentVote + * @covers \Modules\Comments\Models\NullCommentVote * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullCommentVoteTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Comments\Models\NullCommentVote + * @covers \Modules\Comments\Models\NullCommentVote * @group module */ public function testJsonSerialize() : void