LoginSignup
0
1

More than 1 year has passed since last update.

laravelにてcomposer installを実行したらpsr-4に違反しているからautoloadできない警告がでた

Last updated at Posted at 2022-07-13

概要

  • laravelにて開発中のコードのvendor直下を削除して$ composer installを実行したところautoloadの警告が出たので解決方法をまとめる。

警告

  • $ composer installを実行したところ下記の警告が出た。

    Class namespace\class名 located in ディレクトリ/classが含まれるファイル名 does not comply with psr-4 autoloading standard. Skipping.
    

解決方法

  • よく見たら当該クラスのnamespaceの最後のフィールドの頭文字が大文字が正しいのに小文字になっていた。
    • namespace Xxx\Yyy\zzz;
      
    • 正しい

      namespace Xxx\Yyy\Zzz;
      

参考文献

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1