Skip to content

Commit 3259b8c

Browse files
authored
Merge pull request #1230: Http add verbs LINK and UNLINK
2 parents 4772245 + 4a6f3c8 commit 3259b8c

File tree

8 files changed

+6
-11
lines changed

8 files changed

+6
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"rector/rector": "~2.0.9",
146146
"spiral/code-style": "^2.2.2",
147147
"spiral/nyholm-bridge": "^1.3",
148-
"spiral/testing": "^2.8.3",
148+
"spiral/testing": "^2.9.1",
149149
"spiral/validator": "^1.5.4",
150150
"symplify/monorepo-builder": "^10.3.3",
151151
"vimeo/psalm": "^6.0"

src/Console/src/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private function configureIO(InputInterface $input, OutputInterface $output): vo
163163
$inputStream = $input->getStream();
164164
}
165165

166-
if ($inputStream !== null && !@posix_isatty($inputStream) && \getenv('SHELL_INTERACTIVE') === false) {
166+
if ($inputStream !== null && !@\posix_isatty($inputStream) && \getenv('SHELL_INTERACTIVE') === false) {
167167
$input->setInteractive(false);
168168
}
169169
}

src/Exceptions/src/Renderer/ConsoleRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private function isColorsSupported(mixed $stream = STDOUT): bool
246246

247247
try {
248248
if (\DIRECTORY_SEPARATOR === '\\') {
249-
return (\function_exists('sapi_windows_vt100_support') && @\sapi_windows_vt100_support($stream))
249+
return (\function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support($stream))
250250
|| \getenv('ANSICON') !== false
251251
|| \getenv('ConEmuANSI') === 'ON'
252252
|| \getenv('TERM') === 'xterm';

src/Router/src/RouteInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface RouteInterface extends RequestHandlerInterface
1818
/**
1919
* List of possible verbs for the route.
2020
*/
21-
public const VERBS = ['GET', 'POST', 'PUT', 'PATCH', 'OPTIONS', 'HEAD', 'DELETE'];
21+
public const VERBS = ['GET', 'POST', 'PUT', 'PATCH', 'OPTIONS', 'HEAD', 'DELETE', 'LINK', 'UNLINK'];
2222

2323
public function withUriHandler(UriHandler $uriHandler): RouteInterface;
2424

src/Telemetry/src/Monolog/TelemetryProcessor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Monolog\LogRecord;
88
use Monolog\Processor\ProcessorInterface;
99
use Psr\Container\ContainerInterface;
10-
use Spiral\Core\Attribute\Proxy;
1110
use Spiral\Telemetry\TracerInterface;
1211

1312
final class TelemetryProcessor implements ProcessorInterface

src/Telemetry/src/TracerInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Spiral\Telemetry;
66

7-
use Spiral\Core\ScopeInterface;
8-
97
/**
108
* Something may be changed in the future. We will stable it soon.
119
* Feedback is welcome {@link https://github.com/spiral/framework/discussions/822}.

src/Telemetry/tests/ScopedTracerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testFirstTracerIsProxy(): void
2929
$result = $tracer->trace(
3030
'foo',
3131
static fn(ContainerInterface $container): TracerInterface => $container
32-
->get(TracerInterface::class)
32+
->get(TracerInterface::class),
3333
);
3434

3535
self::assertTrue(Proxy::isProxy($tracer));
@@ -62,7 +62,7 @@ static function (ContainerInterface $container): array {
6262
->get(SpanInterface::class),
6363
['baz' => 42],
6464
),
65-
$container->get(SpanInterface::class)
65+
$container->get(SpanInterface::class),
6666
];
6767
},
6868
['foo' => 'bar'],

tests/Framework/Http/AuthSessionTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Spiral\Tests\Framework\Http;
66

7-
use Psr\Container\ContainerExceptionInterface;
8-
use Psr\Container\NotFoundExceptionInterface;
97
use Spiral\Auth\AuthContextInterface;
108
use Spiral\Bootloader\Http\Exception\ContextualObjectNotFoundException;
119
use Spiral\Bootloader\Http\Exception\InvalidRequestScopeException;

0 commit comments

Comments
 (0)