Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring #12

Merged
merged 7 commits into from
Nov 6, 2023
Merged

Refactoring #12

merged 7 commits into from
Nov 6, 2023

Conversation

VitalyArt
Copy link
Owner

@VitalyArt VitalyArt commented Nov 5, 2023

English:

Compatibility-breaking changes:

  • PHP version has been upgraded to 8.2.
  • The namespace exceptions has been renamed to Exceptions
  • The file bootstrap.php has been removed.
  • The getTypeString() method of the Entry class now returns an EntryTypeEnum.
  • DateTime has been changed to DateTimeImmutable.

Non-compatibility-breaking changes:

  • DTO classes are now readonly.
  • All parser exceptions now inherit from the ParserException class.
  • The Demo class has added a getDuration() method that returns the duration of the demo file in seconds.
  • An EntryTypeEnum enum has been added.

Русский:

Изменения ломающие совместимость:

  • Повышена версия PHP до 8.2
  • Неймспейс exceptions был переименован в Exceptions
  • Удалён файл bootstrap.php
  • Теперь метод getTypeString() класса Entry возвращает EntryTypeEnum
  • DateTime изменены на DateTimeImmutable

Изменения не ломающие совместимость:

  • DTO классы теперь readonly
  • Теперь все исключения парсера наследуются от класса ParserException
  • В класс Demo добавлен метод getDuration() возвращающий время демо файла в секундах
  • Добавлен enum EntryTypeEnum

@VitalyArt VitalyArt merged commit 5877cec into master Nov 6, 2023
1 check passed
@VitalyArt VitalyArt deleted the php82 branch November 6, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant