瀏覽代碼

Fix typos

Pierre Grimaud 5 年之前
父節點
當前提交
ff3128b487
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/Monolog/Utils.php
  2. 1 1
      tests/Monolog/Handler/ErrorLogHandlerTest.php
  3. 1 1
      tests/Monolog/RegistryTest.php

+ 1 - 1
src/Monolog/Utils.php

@@ -71,7 +71,7 @@ final class Utils
      *
      * If the failure is due to invalid string encoding, try to clean the
      * input and encode again. If the second encoding attempt fails, the
-     * inital error is not encoding related or the input can't be cleaned then
+     * initial error is not encoding related or the input can't be cleaned then
      * raise a descriptive exception.
      *
      * @param  int               $code return code of json_last_error function

+ 1 - 1
tests/Monolog/Handler/ErrorLogHandlerTest.php

@@ -41,7 +41,7 @@ class ErrorLogHandlerTest extends TestCase
     /**
      * @covers Monolog\Handler\ErrorLogHandler::write
      */
-    public function testShouldLogMessagesUsingErrorLogFuncion()
+    public function testShouldLogMessagesUsingErrorLogFunction()
     {
         $type = ErrorLogHandler::OPERATING_SYSTEM;
         $handler = new ErrorLogHandler($type);

+ 1 - 1
tests/Monolog/RegistryTest.php

@@ -116,7 +116,7 @@ class RegistryTest extends \PHPUnit\Framework\TestCase
     /**
      * @covers Monolog\Registry::getInstance
      */
-    public function testFailsOnNonExistantLogger()
+    public function testFailsOnNonExistentLogger()
     {
         $this->expectException(\InvalidArgumentException::class);
         Registry::getInstance('test1');