-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build failures for the cake 5 upgrade (#326)
* cake 5 upgrade - upgrade to PhpUnit 10, which is needed when working with CakePHP 5, and fixing the PHPUnit tests afterwards * cake 5 upgrade - The request handler component has been removed from Cake, so no need to have special logic for it * cake 5 upgrade - Fix style issues reported by phpcs * cake 5 upgrade - Fix Coding Standard & Static Analysis Errors / Warnings * cake 5 upgrade - Static code analysis A warns that $fileInfo->getPathInfo() might return null on errors leading to a possible NPE. Static code analysis B does not know that $fileInfo->getPathInfo() might return null and therefore complains that the comparison is always true. Fix one of them, ignore the other * cake 5 upgrade - readd psalm and phpstan to fix the build * cake 5 upgrade - psalm 4 does not have support for intersecion types, so let's update to psalm 5 * cake 5 upgrade - psalm 5.0 throws a "Could not get class storage for cake\cache\cacheengineinterface" error, so let's upgrade to a more current version * cake 5 upgrade - phpunit 10 remoced the --verbose option * cake 5 upgrade - no need for dev versions anymore, as cake 5 is declared stable * cake 5 upgrade - update to mpdf 8.1.6, because it's the first minor release to support psr log 3 * cake 5 upgrade - implement pr feedback * cake 5 upgrade - upgrade to cakephp 5.0.1 and remove the temporary workaround for a php 5.0.0 bug again * cake 5 upgrade - adapt the PdfView for content type negotiation * Fix CS error * Fix CS error --------- Co-authored-by: bgehrels <[email protected]> Co-authored-by: ADmad <[email protected]>
- Loading branch information
1 parent
e65d3af
commit 47e8f98
Showing
9 changed files
with
67 additions
and
68 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
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 was deleted.
Oops, something went wrong.
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,27 +1,13 @@ | ||
<phpunit | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="./tests/bootstrap.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
stopOnIncomplete="false" | ||
stopOnSkipped="false" | ||
> | ||
|
||
<testsuites> | ||
<testsuite name="CakePdf Plugin Tests"> | ||
<directory>./tests/TestCase</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="./tests/bootstrap.php" colors="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false"> | ||
<testsuites> | ||
<testsuite name="CakePdf Plugin Tests"> | ||
<directory>./tests/TestCase</directory> | ||
</testsuite> | ||
</testsuites> | ||
<source> | ||
<include> | ||
<directory suffix=".php">./src/</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
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
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