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
2 changes: 1 addition & 1 deletion src/Core/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public function staticFiles(
array $options = []
): self {
// Registra cada arquivo encontrado como uma rota individual
StaticFileManager::registerDirectory($routePrefix, $physicalPath, $this, $options);
StaticFileManager::registerDirectory($routePrefix, $physicalPath, $options);

return $this;
}
Expand Down
9 changes: 6 additions & 3 deletions tests/Core/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ class ContainerTest extends TestCase
protected function setUp(): void
{
// Suppress E_USER_DEPRECATED from the deprecated Core\Container class under test
set_error_handler(static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
}, E_ALL);
set_error_handler(
static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
},
E_ALL
);

// Reset singleton instance for isolated testing
$this->resetContainerSingleton();
Expand Down
9 changes: 6 additions & 3 deletions tests/Middleware/Performance/RateLimitMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ class RateLimitMiddlewareTest extends TestCase
protected function setUp(): void
{
// Suppress E_USER_DEPRECATED from the deprecated RateLimitMiddleware class under test
set_error_handler(static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
}, E_ALL);
set_error_handler(
static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
},
E_ALL
);
}

protected function tearDown(): void
Expand Down
9 changes: 6 additions & 3 deletions tests/Middleware/SimpleLoadShedderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ class SimpleLoadShedderTest extends TestCase
protected function setUp(): void
{
// Suppress E_USER_DEPRECATED from the deprecated LoadShedder class under test
set_error_handler(static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
}, E_ALL);
set_error_handler(
static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
},
E_ALL
);

$this->loadShedder = new LoadShedder(5, 60); // 5 requests per 60 seconds
}
Expand Down
9 changes: 6 additions & 3 deletions tests/Support/StrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ class StrTest extends TestCase
protected function setUp(): void
{
// Suppress E_USER_DEPRECATED from deprecated Str methods under test
set_error_handler(static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
}, E_ALL);
set_error_handler(
static function (int $errno): bool {
return $errno === E_USER_DEPRECATED;
},
E_ALL
);
}

protected function tearDown(): void
Expand Down
Loading