1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 06:06:40 +02:00

Move phpdoc to native types

This commit is contained in:
Jordi Boggiano
2022-04-20 09:21:58 +02:00
parent 2695fa86cd
commit 7952a83e0c
117 changed files with 432 additions and 766 deletions

View File

@@ -15,10 +15,12 @@ use DateTimeZone;
use Monolog\Handler\TestHandler;
use Monolog\Formatter\LineFormatter;
use Monolog\Processor\PsrLogMessageProcessor;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Log\InvalidArgumentException;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;
use Stringable;
class PsrLogCompatTest extends TestCase
{
@@ -153,13 +155,11 @@ class PsrLogCompatTest extends TestCase
/**
* Creates a mock of a `Stringable`.
*
* @param string $string The string that must be represented by the stringable.
* @return \PHPUnit_Framework_MockObject_MockObject A mock of an object that has a `__toString()` method.
* @param string $string The string that must be represented by the stringable.
*/
protected function createStringable($string = '')
protected function createStringable(string $string = ''): MockObject&Stringable
{
$mock = $this->getMockBuilder('Stringable')
->setMethods(['__toString'])
$mock = $this->getMockBuilder(Stringable::class)
->getMock();
$mock->method('__toString')