Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\PsrHttpMessage\Tests\Fixtures;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
/**
* @author Kvin Dunglas <[email protected]>
*/
class Response extends Message implements ResponseInterface
{
public function __construct(
string $version = '1.1',
array $headers = [],
StreamInterface $body = new Stream(),
private readonly int $statusCode = 200,
) {
parent::__construct($version, $headers, $body);
}
public function getStatusCode(): int
{
return $this->statusCode;
}
public function withStatus($code, $reasonPhrase = ''): never
{
throw new \BadMethodCallException('Not implemented.');
}
public function getReasonPhrase(): never
{
throw new \BadMethodCallException('Not implemented.');
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\PsrHttpMessage\Tests\Fixtures;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
/**
* @author Kvin Dunglas <[email protected]>
*/
class Response extends Message implements ResponseInterface
{
public function __construct(
string $version = '1.1',
array $headers = [],
StreamInterface $body = new Stream(),
private readonly int $statusCode = 200,
) {
parent::__construct($version, $headers, $body);
}
public function getStatusCode(): int
{
return $this->statusCode;
}
public function withStatus($code, $reasonPhrase = ''): never
{
throw new \BadMethodCallException('Not implemented.');
}
public function getReasonPhrase(): never
{
throw new \BadMethodCallException('Not implemented.');
}
}
Function Calls
None |
Stats
MD5 | 4ee7715cfd51f970efe02d0805e6ed21 |
Eval Count | 0 |
Decode Time | 93 ms |