Skip to content

Commit 970e5ab

Browse files
committed
Align with changes in dependencies.
1 parent b25c19a commit 970e5ab

12 files changed

+36
-40
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/.idea/
2-
/.phpunit.result.cache
2+
/.phpunit.cache/
33
/bin/
44
/composer.lock
5-
/custom.task.properties
6-
/custom.type.properties
75
/test/Command/Foo.php
86
/test/coverage.xml
97
/test/report/

composer.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,22 @@
1111
"ext-dom": "*",
1212
"ext-libxml": "*",
1313
"plaisio/console": "^3.0.0",
14-
"plaisio/error-logger": "^1.2.0",
15-
"plaisio/exception": "^1.1.0",
16-
"plaisio/exception-handler": "^2.0.0",
17-
"plaisio/kernel": "^3.1.1",
14+
"plaisio/error-logger": "^1.3.0",
15+
"plaisio/exception": "^1.2.0",
16+
"plaisio/exception-handler": "^2.1.0",
17+
"plaisio/kernel": "^3.2.1",
1818
"plaisio/obfuscator": "^2.0.0",
19-
"plaisio/request": "^0.13.0",
20-
"plaisio/request-logger": "^1.2.0",
19+
"plaisio/request": "^1.0.0",
20+
"plaisio/request-logger": "^1.3.0",
2121
"plaisio/response-core": "^2.8.0",
2222
"plaisio/session": "^5.0.0",
23-
"setbased/helper-code-store-php": "^2.4.2",
24-
"setbased/php-stratum-middle": "^5.7.0",
23+
"setbased/helper-code-store-php": "^2.6.0",
24+
"setbased/php-stratum-middle": "^5.11.0",
2525
"symfony/console": "^6.2.5"
2626
},
27-
"minimum-stability": "dev",
28-
"prefer-stable": true,
2927
"require-dev": {
30-
"phing/phing": "^3.0.0-RC4",
31-
"phpunit/phpunit": "^9.6.3",
28+
"phing/phing": "^3.0.0",
29+
"phpunit/phpunit": "^10.5.35",
3230
"plaisio/console-kernel": "^1.0.1"
3331
},
3432
"autoload": {

phpunit.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<?xml version="1.0"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="test/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage processUncoveredFiles="true">
4-
<include>
5-
<directory suffix=".php">src</directory>
6-
</include>
7-
<exclude>
8-
<directory suffix=".php">vendor/setbased</directory>
9-
</exclude>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="test/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage>
104
<report>
115
<clover outputFile="test/coverage.xml"/>
126
<html outputDirectory="test/report"/>
@@ -18,4 +12,12 @@
1812
</testsuite>
1913
</testsuites>
2014
<logging/>
15+
<source>
16+
<include>
17+
<directory suffix=".php">src</directory>
18+
</include>
19+
<exclude>
20+
<directory suffix=".php">vendor/setbased</directory>
21+
</exclude>
22+
</source>
2123
</phpunit>

src/BadRequestExceptionAgent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function handleException(BadRequestException $exception): Response
8181
$this->nub->DL->commit();
8282

8383
// Only on development environment log the error.
84-
if ($this->nub->request->isEnvDev())
84+
if ($this->nub->request->isEnvDev)
8585
{
8686
$this->nub->errorLogger->logError($exception);
8787
}

src/Command/GenerateExceptionHandlerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class GenerateExceptionHandlerCommand extends PlaisioCommand
2121
/**
2222
* @inheritdoc
2323
*/
24-
protected function configure()
24+
protected function configure(): void
2525
{
2626
$this->setName('plaisio:generate-core-exception-handler')
2727
->setDescription('Generates the code for the core\'s exception handler');

src/DecodeExceptionAgent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handleConstructException(DecodeException $exception): Response
3131

3232
//--------------------------------------------------------------------------------------------------------------------
3333
/**
34-
* Handles a DecodeException thrown thrown during the preparation phase.
34+
* Handles a DecodeException thrown during the preparation phase.
3535
*
3636
* @param DecodeException $exception The exception.
3737
*
@@ -81,7 +81,7 @@ private function handleException(DecodeException $exception): Response
8181
$this->nub->DL->commit();
8282

8383
// Only on development environment log the error.
84-
if ($this->nub->request->isEnvDev())
84+
if ($this->nub->request->isEnvDev)
8585
{
8686
$this->nub->errorLogger->logError($exception);
8787
}

src/Helper/ExceptionHandlerCodeGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function generateTrailer(): void
176176
*/
177177
private function importClasses(array $allAgents): void
178178
{
179-
foreach ($allAgents as $name => $agents)
179+
foreach ($allAgents as $agents)
180180
{
181181
foreach ($agents as $agent)
182182
{

src/Helper/ExceptionHandlerMetadataExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function extractExceptionClass(\ReflectionClass $reflectionClass, string
189189

190190
//--------------------------------------------------------------------------------------------------------------------
191191
/**
192-
* Returns the basename of a method if the and only if the method is an exception handler.
192+
* Returns the basename of a method if and only if the method is an exception handler.
193193
*
194194
* @param string $method The name of the method.
195195
*

src/InvalidUrlExceptionAgent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function handleException(InvalidUrlException $exception): Response
8181
$this->nub->DL->commit();
8282

8383
// Only on development environment log the error.
84-
if ($this->nub->request->isEnvDev())
84+
if ($this->nub->request->isEnvDev)
8585
{
8686
$this->nub->errorLogger->logError($exception);
8787
}

src/NotAuthorizedExceptionAgent.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ private function handleException(NotAuthorizedException $exception): Response
8080

8181
// Redirect the user agent to the login page. After the user has successfully logged on the user agent will be
8282
// redirected to currently requested URL.
83-
$response = new SeeOtherResponse($this->nub->getLoginUrl($this->nub->request->getRequestUri()));
83+
$response = new SeeOtherResponse($this->nub->getLoginUrl($this->nub->request->requestUri));
8484
}
8585
else
8686
{
87-
// The user is logged on and the user has requested an URL for which the user has no authorization.
87+
// The user is logged on and the user has requested a URL for which the user has no authorization.
8888

8989
// Set the HTTP status to 404 (Not Found).
9090
$response = new NotFoundResponse();
9191

9292
// Only on development environment log the error.
93-
if ($this->nub->request->isEnvDev())
93+
if ($this->nub->request->isEnvDev)
9494
{
9595
$this->nub->errorLogger->logError($exception);
9696
}

0 commit comments

Comments
 (0)