warning() public méthode

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
public warning ( string $message, array $context = [] ) : null
$message string
$context array
Résultat null
Exemple #1
0
 public function testLogger()
 {
     $this->logger->emergency('testing Logger');
     $this->logger->alert('testing Logger');
     $this->logger->critical('testing Logger');
     $this->logger->error('testing Logger');
     $this->logger->warning('testing Logger');
     $this->logger->notice('testing Logger');
     $this->logger->info('testing Logger');
     $this->logger->debug('testing Logger');
     $this->assertTrue(true);
 }