ソースを参照

Update src/Core/PluginCollection.php

Co-authored-by: Mark Story <mark@mark-story.com>
Mark Scherer 4 年 前
コミット
ca209245e8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/Core/PluginCollection.php

+ 1 - 1
src/Core/PluginCollection.php

@@ -236,7 +236,7 @@ class PluginCollection implements Iterator, Countable
     {
     {
         if (str_contains($name, '\\')) {
         if (str_contains($name, '\\')) {
             if (!class_exists($name)) {
             if (!class_exists($name)) {
-                throw new InvalidArgumentException('Class not exists: ' . $name);
+                throw new InvalidArgumentException("Class `{$name}` does not exist.");
             }
             }
 
 
             /** @var \Cake\Core\PluginInterface $plugin */
             /** @var \Cake\Core\PluginInterface $plugin */