diff --git a/.gitignore b/.gitignore index 301a412..72edf31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -composer.lock +/composer.lock vendor .phpunit.result.cache build diff --git a/src/Field/Button.php b/src/Field/Button.php index a0a3fd8..a57854b 100644 --- a/src/Field/Button.php +++ b/src/Field/Button.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Field; +/** + * @see \Qdequippe\PHPDFtk\Tests\Field\ButtonTest + */ final class Button extends Field { /** diff --git a/src/Field/Choice.php b/src/Field/Choice.php index 7182a76..1b2bf63 100644 --- a/src/Field/Choice.php +++ b/src/Field/Choice.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Field; +/** + * @see \Qdequippe\PHPDFtk\Tests\Field\ChoiceTest + */ final class Choice extends Field { /** diff --git a/src/Field/Text.php b/src/Field/Text.php index 0776107..beb03a2 100644 --- a/src/Field/Text.php +++ b/src/Field/Text.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Field; +/** + * @see \Qdequippe\PHPDFtk\Tests\Field\TextTest + */ final class Text extends Field { public function __construct(string $name, ?string $nameAlt = null, ?int $flags = null, ?string $justification = null, ?string $value = null) diff --git a/src/PDFtk.php b/src/PDFtk.php index 5f77df0..42b001d 100644 --- a/src/PDFtk.php +++ b/src/PDFtk.php @@ -17,6 +17,9 @@ use Symfony\Component\Process\ExecutableFinder; use Symfony\Component\Process\Process; +/** + * @see \Qdequippe\PHPDFtk\Tests\PDFtkTest + */ final readonly class PDFtk { public function __construct( diff --git a/src/Report/Bookmark.php b/src/Report/Bookmark.php index 4108f94..59fc1c9 100644 --- a/src/Report/Bookmark.php +++ b/src/Report/Bookmark.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Report; +/** + * @see \Qdequippe\PHPDFtk\Tests\Report\BookmarkTest + */ final class Bookmark { private ?string $title; diff --git a/src/Report/Info.php b/src/Report/Info.php index 8783f49..e46d253 100644 --- a/src/Report/Info.php +++ b/src/Report/Info.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Report; +/** + * @see \Qdequippe\PHPDFtk\Tests\Report\InfoTest + */ final class Info { private string $key; diff --git a/src/Report/PageMedia.php b/src/Report/PageMedia.php index 618484e..328bc44 100644 --- a/src/Report/PageMedia.php +++ b/src/Report/PageMedia.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Report; +/** + * @see \Qdequippe\PHPDFtk\Tests\Report\PageMediaTest + */ final readonly class PageMedia { private int $number; diff --git a/src/Report/Report.php b/src/Report/Report.php index 670a577..b44b8b3 100644 --- a/src/Report/Report.php +++ b/src/Report/Report.php @@ -4,6 +4,9 @@ namespace Qdequippe\PHPDFtk\Report; +/** + * @see \Qdequippe\PHPDFtk\Tests\Report\ReportTest + */ final readonly class Report { /** diff --git a/tools/rector/composer.lock b/tools/rector/composer.lock new file mode 100644 index 0000000..1366e99 --- /dev/null +++ b/tools/rector/composer.lock @@ -0,0 +1,140 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "57211dc5c619d183df6361f5d7d57fe5", + "packages": [], + "packages-dev": [ + { + "name": "phpstan/phpstan", + "version": "2.2.14", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9c672e7a8e791dfc3d30e55f683e73fc0b63a3ac", + "reference": "9c672e7a8e791dfc3d30e55f683e73fc0b63a3ac", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2026-09-12T21:39:33+00:00" + }, + { + "name": "rector/rector", + "version": "2.6.7", + "source": { + "type": "git", + "url": "https://github.com/rectorphp/rector.git", + "reference": "f4aa224edb9b0630fb43826d4cb6a49b62e48d4c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/f4aa224edb9b0630fb43826d4cb6a49b62e48d4c", + "reference": "f4aa224edb9b0630fb43826d4cb6a49b62e48d4c", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "phpstan/phpstan": "^2.2.14" + }, + "conflict": { + "rector/rector-doctrine": "*", + "rector/rector-downgrade-php": "*", + "rector/rector-phpunit": "*", + "rector/rector-symfony": "*" + }, + "bin": [ + "bin/rector" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "homepage": "https://getrector.com/", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" + ], + "support": { + "issues": "https://github.com/rectorphp/rector/issues", + "source": "https://github.com/rectorphp/rector/tree/2.6.7" + }, + "funding": [ + { + "url": "https://github.com/tomasvotruba", + "type": "github" + } + ], + "time": "2026-09-13T20:17:44+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +}