Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/ISSUE_TEMPLATE/Bug_report.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/Feature_request.md

This file was deleted.

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/Support_question.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/Support_us.md

This file was deleted.

2 changes: 0 additions & 2 deletions .github/funding.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/pull_request_template.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: 8.0
coverage: none

- run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
coverage: none

- run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
coverage: none

- run: composer install --no-progress --prefer-dist
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
php: ['8.0', '8.1']

fail-fast: false

Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
php-version: 8.0
coverage: none

- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
Expand All @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.0
coverage: none

- run: composer install --no-progress --prefer-dist
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
}
],
"require": {
"php": ">=7.2 <8.2",
"nette/component-model": "^3.0",
"nette/http": "^3.1",
"nette/utils": "^3.2.1"
"php": ">=8.0 <8.2",
"nette/component-model": "^4.0",
"nette/http": "^4.0",
"nette/utils": "^4.0"
},
"require-dev": {
"nette/application": "^3.0",
"nette/di": "^3.0",
"nette/tester": "^2.0",
"latte/latte": "^2.10.2",
"tracy/tracy": "^2.4",
"phpstan/phpstan-nette": "^0.12"
"nette/application": "^4.0",
"nette/di": "^4.0",
"nette/tester": "^2.4",
"latte/latte": "^2.10.2 || ^3.0",
"tracy/tracy": "^2.8",
"phpstan/phpstan-nette": "^1.0"
},
"conflict": {
"nette/di": "<3.0-stable",
"latte/latte": ">=3.0"
"latte/latte": ">=3.1"
},
"autoload": {
"classmap": ["src/"]
Expand All @@ -42,7 +42,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "3.1-dev"
"dev-master": "4.0-dev"
}
}
}
33 changes: 0 additions & 33 deletions contributing.md

This file was deleted.

9 changes: 4 additions & 5 deletions examples/custom-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@

class DateInput extends Nette\Forms\Controls\BaseControl
{
/** @var string */
private $day = '';
private string $day = '';

private $month = '';
private string $month = '';

private $year = '';
private string $year = '';


public function __construct($label = null)
Expand Down Expand Up @@ -88,7 +87,7 @@ public function getControl()
. Helpers::createSelectBox(
[1 => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
[],
$this->month
$this->month,
)->name($name . '[month]')

. Html::el('input', [
Expand Down
4 changes: 1 addition & 3 deletions examples/latte.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
}

$latte = new Latte\Engine;
$latte->onCompile[] = function ($latte) {
Nette\Bridges\FormsLatte\FormMacros::install($latte->getCompiler());
};
$latte->addExtension(new Nette\Bridges\FormsLatte\FormsExtension);

$latte->render(__DIR__ . '/latte/page.latte', ['form' => $form]);
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The recommended way to install is via Composer:
composer require nette/forms
```

It requires PHP version 7.2 and supports PHP up to 8.1.
It requires PHP version 8.0 and supports PHP up to 8.1.


Client-side support can be installed with npm or yarn:
Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/FormsDI/FormsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct()
{
$this->config = new class {
/** @var string[] */
public $messages = [];
public array $messages = [];
};
}

Expand Down
Loading