Skip to content
Merged
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
12 changes: 0 additions & 12 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,6 @@ parameters:
count: 2
path: tests/CodeIgniterTest.php

-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with ''https\://example\.com…'' and ''https\://example\.com…'' will always evaluate to false\.$#'
identifier: method.impossibleType
count: 1
path: tests/CodeIgniterTest.php

-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with ''https\://example\.com…'' and ''https\://example\.com…'' will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 1
path: tests/CodeIgniterTest.php

-
message: '''
#^Call to deprecated method __construct\(\) of class CodeIgniter\\HTTP\\Response\:
Expand Down
2 changes: 0 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\Strict\Rector\If_\BooleanInIfConditionRuleFixerRector;
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
use Rector\ValueObject\PhpVersion;
Expand Down Expand Up @@ -140,7 +139,6 @@
$rectorConfig->rule(StringClassNameToClassConstantRector::class);
$rectorConfig->rule(PrivatizeFinalClassPropertyRector::class);
$rectorConfig->rule(CompleteDynamicPropertiesRector::class);
$rectorConfig->rule(BooleanInIfConditionRuleFixerRector::class);
$rectorConfig->rule(SingleInArrayToCompareRector::class);
$rectorConfig->rule(VersionCompareFuncCallToConstantRector::class);
$rectorConfig->rule(ExplicitBoolCompareRector::class);
Expand Down
2 changes: 2 additions & 0 deletions src/Format/HTMLFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class HTMLFormatter implements FormatterInterface
* Takes the given data and formats it.
*
* @param array|string|null $data
*
* @phpstan-return string
*/
public function format($data): string
{
Expand Down
2 changes: 2 additions & 0 deletions tests/CommonTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests;

use CodeIgniter\Test\CIUnitTestCase;
Expand Down
2 changes: 2 additions & 0 deletions tests/Format/HTMLFormatterTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\Format;

use CodeIgniter\Test\CIUnitTestCase;
Expand Down
2 changes: 2 additions & 0 deletions tests/HTTP/IncomingRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\HTTP;

use CodeIgniter\HTTP\URI;
Expand Down
2 changes: 2 additions & 0 deletions tests/HTTP/RedirectResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\HTTP;

use CodeIgniter\Test\CIUnitTestCase;
Expand Down
6 changes: 4 additions & 2 deletions tests/HTTP/ResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\HTTP;

use CodeIgniter\Test\CIUnitTestCase;
Expand Down Expand Up @@ -30,7 +32,7 @@ public function testSetPushUrl(): void

public function testSetPushUrlFalse(): void
{
$this->response->setPushUrl(null);
$this->response->setPushUrl();

$this->assertSame('false', $this->response->getHeaderLine('HX-Push-Url'));
}
Expand All @@ -44,7 +46,7 @@ public function testSetReplaceUrl(): void

public function testSetReplaceUrlFalse(): void
{
$this->response->setReplaceUrl(null);
$this->response->setReplaceUrl();

$this->assertSame('false', $this->response->getHeaderLine('HX-Replace-Url'));
}
Expand Down
2 changes: 2 additions & 0 deletions tests/View/ErrorModelDecoratorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\View;

use CodeIgniter\Autoloader\FileLocatorInterface;
Expand Down
2 changes: 2 additions & 0 deletions tests/View/ToolbarDecoratorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\View;

use CodeIgniter\Autoloader\FileLocatorInterface;
Expand Down
2 changes: 2 additions & 0 deletions tests/View/ViewTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tests\View;

use CodeIgniter\Autoloader\FileLocatorInterface;
Expand Down