Skip to content

Conversation

@f3l1x
Copy link
Member

@f3l1x f3l1x commented Dec 25, 2025

No description provided.

- Upgrade PHP requirement to 8.2+ and Nette to 3.2+
- Replace ninjify packages with contributte/qa and contributte/phpstan
- Update phpstan.neon to use contributte ruleset with level 9
- Update ruleset.xml to use contributte/qa ruleset
- Replace single main.yaml workflow with separate workflow files (tests, phpstan, codesniffer, coverage)
- Rename tests/cases to tests/Cases and tests/fixtures to tests/Fixtures
- Update source files to use PHP 8.2 typed properties
- Update tests/bootstrap.php to use native Nette Tester
- Remove obsolete .kodiak.toml and .coveralls.yml files
- Add mockery/mockery to dev dependencies
- Add workflow_dispatch trigger to all workflows
- Add weekly schedule trigger to tests workflow
- Fix PHPStan level 9 issues:
  - Update deprecated Form constants (MIN->Min, MAX->Max, RANGE->Range, DATA_TEXT->DataText)
  - Replace deprecated getSeparatorPrototype() with getContainerPrototype()
  - Replace deprecated IControl interface with Control
  - Add typed properties to all classes
  - Add native type hints to all methods
  - Fix setValue() contravariance issue in ProtectionFastInput

- Fix CodeSniffer issues:
  - Add array type to $wrappers properties
  - Add proper PHPDoc annotations
  - Fix method spacing and ordering
  - Add exclusion rules for inherited property types

- Update phpstan.neon and ruleset.xml with appropriate ignores
- Update phpstan.neon with scanDirectories and fileExtensions
- Update Makefile with GitHub Actions conditional formatting
- Fix .editorconfig glob pattern syntax
- Clean .gitattributes format
- Update .gitignore with comprehensive test artifact patterns
- Update workflows to use @master and proper PHP versions
- Add multi-PHP version testing (8.2, 8.3, 8.4, lowest)
- Fix CodeSniffer issues in AbstractDateTimeInput.php
- Update test expected files to match actual output
<?php declare(strict_types = 1);

use Ninjify\Nunjuck\Environment;
use Tester\Environment;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's total wrong. Do it whole file again.

Makefile Outdated
@@ -1,24 +1,29 @@
.PHONY: install qa cs csf phpstan tests coverage-clover coverage-html
.PHONY: install qa cs csf phpstan tests coverage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do whole file again

- Add PHP 8.5 to tests workflow matrix
- Remove explicit php version from coverage workflow
- Add contributte/tester dependency and use Environment::setup()
- Rewrite Makefile with proper .PHONY declarations per target
- Convert closures to arrow functions in test files (auto-fixed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants