unionco / calendarize

Calendar Field Type for CraftCMS
MIT License
18 stars 14 forks source link

Fix Composer 2 compatibility #56

Closed brandonkelly closed 3 years ago

brandonkelly commented 3 years ago

When installing this plugin with Composer 1, the following deprecation notice is output:

Deprecation Notice: Class unionco\calendarize\records\CalendarizeRecord located in ./vendor/unionco/calendarize/src/records/CalendarRecord.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0.

Composer 2 was released on October 24, and is now the default version that will be installed, so it’s critical that this gets resolved ASAP, or people will start getting Class not found errors.

To fix, run the following command:

> git mv src/records/CalendarRecord.php src/records/CalendarizeRecord.php

Then commit your change and tag a new release.

(Note that you must use the git mv command, as Git tends to not notice case-sensitive file renames otherwise.)

fvaldes33 commented 3 years ago

@brandonkelly Should be resolved on the latest master branch and tag 1.2.18

Thanks!

brandonkelly commented 3 years ago

Thanks :)