File tree 9 files changed +40
-9
lines changed
9 files changed +40
-9
lines changed Original file line number Diff line number Diff line change
1
+ /.gitignore export-ignore
2
+ /.gitattributes export-ignore
3
+ /phpunit.xml export-ignore
4
+ /workenv export-ignore
5
+ /tests export-ignore
6
+ /.github export-ignore
7
+ /phpcs.php
Original file line number Diff line number Diff line change 20
20
- 7.4
21
21
- 8.0
22
22
- 8.1
23
+ - 8.2
23
24
steps :
24
25
- uses : actions/checkout@v2
25
26
Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ php-html-form
9
9
- * Dep* : Deprecated.
10
10
- * Fix* : Fixed.
11
11
12
+ 2.0.2 [ 2022-12-12]
13
+ ------------------
14
+
15
+ - Add: Support of PHP 8.2.
16
+ - Enh: Reduce size of package.
17
+ - Fix: Small fixes.
18
+
12
19
2.0.1 [ 2022-01-30]
13
20
------------------
14
21
Original file line number Diff line number Diff line change @@ -359,6 +359,22 @@ $ XDEBUG_MODE=coverage ./vendor/bin/phpunit
359
359
360
360
HTML coverage path: `build/coverage/index.html`
361
361
362
+ Code style
363
+ ---
364
+
365
+ To fix code style, run:
366
+
367
+ ```
368
+ ~/.composer/vendor/bin/php-cs-fixer fix --config=./phpcs.php --verbose
369
+ ```
370
+
371
+ You have to install [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) at first, if you
372
+ don' t use build-in Docker image:
373
+
374
+ ```
375
+ composer global require friendsofphp /php-cs-fixer " ^3.13.0"
376
+ ```
377
+
362
378
License
363
379
---
364
380
Original file line number Diff line number Diff line change 26
26
},
27
27
"autoload-dev" : {
28
28
"classmap" : [" tests/" ]
29
- },
30
- "scripts" : {
31
- "cs:fix" : " ~/.composer/vendor/bin/php-cs-fixer fix --config=./phpcs.php --verbose"
32
29
}
33
30
}
Original file line number Diff line number Diff line change 1
1
<?php declare (strict_types=1 );
2
2
3
+ /**
4
+ * Configuration of code style fixer and checker for this library.
5
+ * This configuration compatible with friendsofphp/php-cs-fixer "^3.13.0".
6
+ */
7
+
3
8
use PhpCsFixer \Finder ;
4
9
use PhpCsFixer \Config ;
5
10
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ protected function checkBinding()
89
89
$ oldValue = array_map ('strval ' , $ oldValue );
90
90
91
91
if (in_array ($ currentValue , $ oldValue )) {
92
- return $ this ->check ();
92
+ $ this ->check ();
93
93
}
94
94
}
95
95
Original file line number Diff line number Diff line change 5
5
use AdamWathan \Form \Binding \BoundData ;
6
6
use AdamWathan \Form \Elements \Button ;
7
7
use AdamWathan \Form \Elements \Checkbox ;
8
- use AdamWathan \Form \Elements \Date ;
9
- use AdamWathan \Form \Elements \DateTimeLocal ;
10
8
use AdamWathan \Form \Elements \Email ;
11
9
use AdamWathan \Form \Elements \File ;
12
10
use AdamWathan \Form \Elements \FormOpen ;
Original file line number Diff line number Diff line change 1
- FROM php:8.1 -cli-alpine
1
+ FROM php:8.2 -cli-alpine
2
2
3
- RUN apk add --no-cache $PHPIZE_DEPS
3
+ RUN apk add --no-cache $PHPIZE_DEPS && apk add --update --no-cache linux-headers
4
4
5
5
RUN pecl install xdebug && docker-php-ext-enable xdebug
6
6
RUN rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
@@ -13,6 +13,6 @@ RUN if [ ${GITHUB_OAUTH_TOKEN} != false ]; then \
13
13
;fi
14
14
RUN export COMPOSER_DISABLE_XDEBUG_WARN=1
15
15
16
- RUN composer global require friendsofphp/php-cs-fixer "^3.5 .0"
16
+ RUN composer global require friendsofphp/php-cs-fixer "^3.13 .0"
17
17
18
18
CMD ["php" , "-a" ]
You can’t perform that action at this time.
0 commit comments