-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds compatibility with PHP 8.0. Drop compatibility with PHP 7.0.
- Loading branch information
Showing
26 changed files
with
148 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Ignore all test and documentation with “export-ignore”. | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml export-ignore | ||
/README.md export-ignore | ||
/.php-cs-fixer.php export-ignore | ||
/.github export-ignore | ||
/README.md export-ignore | ||
/phpunit.xml export-ignore | ||
/phpstan.neon export-ignore | ||
/tests export-ignore | ||
/examples export-ignore | ||
/tests export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/vendor/ | ||
.php_cs.cache | ||
/.*.cache | ||
/tests-report-html/ | ||
/composer.lock | ||
/composer.lock | ||
/coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = Finder::create() | ||
->exclude('vendor') | ||
->in(__DIR__) | ||
; | ||
|
||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->exclude('vendor') | ||
->in(__DIR__); | ||
|
||
$config = new PhpCsFixer\Config(); | ||
return $config->setRules([ | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'php_unit_test_class_requires_covers' => false, | ||
'backtick_to_shell_exec' => true, | ||
'blank_line_before_statement' => [ | ||
'statements' => ['declare', 'return', 'case'], | ||
], | ||
'comment_to_phpdoc' => false, | ||
'declare_equal_normalize' => ['space' => 'single'], | ||
'global_namespace_import' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'native_function_invocation' => false, | ||
'no_unset_on_property' => false, | ||
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], | ||
'phpdoc_to_comment' => false, | ||
'self_static_accessor' => true, | ||
]) | ||
->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
$vis->setDefaultEntity('timeline'); | ||
|
||
$vis->handleRequest(); | ||
die(); | ||
exit(); | ||
} | ||
?> | ||
<html lang="en"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
]); | ||
|
||
$vis->handleRequest(); | ||
die(); | ||
exit(); | ||
} | ||
?> | ||
<html lang="en"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
]); | ||
|
||
$vis->handleRequest(); | ||
die(); | ||
exit(); | ||
} | ||
?> | ||
<html> | ||
|
Oops, something went wrong.