Skip to content

ci: Switch to GitHub actions#20

Merged
hrach merged 9 commits into
nextras:masterfrom
jtojnar:ci
Jul 13, 2026
Merged

ci: Switch to GitHub actions#20
hrach merged 9 commits into
nextras:masterfrom
jtojnar:ci

Conversation

@jtojnar

@jtojnar jtojnar commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

We only have PHPStan but that is better than nothing.

Would be nice to release a new version after merging this.

jtojnar added 9 commits July 14, 2026 00:57
This will allow users to create their own configs overwriting e.g. `editorUrl` parameter in `phpstan.neon`.
https://phpstan.org/config-reference#config-file
https://phpstan.org/config-reference#clickable-editor-url

Add the old name to `.gitignore` to avoid accidentally commiting it.
To allow running PHPStan without extra arguments.

Picked the values used by Travis CI config.
`endLine` property was dropped:
nette/forms@c494415

Let’s resort to duck typing for now so that we do not depend on a too-new version.
Fixes PHPStan errors – thes could actually happen when the form contains
a `Nette\Forms\Control` subclass that is not an instance of `BaseControl`.

Most controls will satisfy it but we do not want to limit ourselves to
that with `instanceof` check since we also want to support third-party
controls (e.g. those using `Nextras\FormComponents\Fragments\Traits\BaseControlTrait`).
Hence the duck typing.
We only have PHPStan but that is better than nothing.
Will be needed to satisfy PHPStan.
@hrach hrach merged commit ac991a1 into nextras:master Jul 13, 2026
@hrach

hrach commented Jul 13, 2026

Copy link
Copy Markdown
Member

👏

@jtojnar jtojnar deleted the ci branch July 13, 2026 23:50
@jtojnar

jtojnar commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Fixing the breakage in #21.

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.

2 participants