Skip to content

Latest commit

 

History

History
56 lines (51 loc) · 6.24 KB

CHANGELOG-5.0.md

File metadata and controls

56 lines (51 loc) · 6.24 KB

5.0.0-alpha.2 (2021-05-05)

Changed

  • Changed Phalcon\Translate\Adapter\Gettext::setLocale signature to allow the category and an array of locales #14764
  • Phalcon\Version is now moved to Phalcon\Support\Version
    • _getSpecialVersion and _getVersion have been removed (marked deprecated in v4)
    • The class is no longer static; it has to be instantiated first
    • References to Phalcon\Debug and the Volt compiler have been adjusted #15422
  • Phalcon\Debug is now moved to Phalcon\Support\Debug; CSS/JS references updated #14817
  • Changed the logging names types to uppercase #15375
  • Changes to the Phalcon\Logger:
    • Renamed Phalcon\Logger\Item::getName to Phalcon\Logger\Item::getLevelName
    • Renamed Phalcon\Logger\Item::getType to Phalcon\Logger\Item::getLevel
    • Changed the logger timestamp to be DateTimeImmutable on a per item basis - more accurate timing
    • Changed Phalcon\Logger to accept a DateTimeZone in the constructor
    • Changed placeholder %type% to %level% to align with the variables #15411
  • Changed Phalcon\Mvc\Model::getSchema(), Phalcon\Mvc\ModelInterface::getSchema(), Phalcon\Mvc\Model\Manager::getModelSchema() Phalcon\Mvc\Model\ManagerInterface::getModelSchema() to return string | null so as to abide with the latest Zephir #15411
  • Changed the interpolation for the formatters to use the Phalcon\Support\Helper\Str\Interpolate #15411
  • Changed the exceptions thrown from factories to be more specific to their namespaces vs. the Factory generic one #15411
  • Changed Phalcon\Mvc\Model\ManagerInterface:getRelationByAlias() return type from Relation|bool to RelationInterface|bool #15343
  • Changed Phalcon\Paginator\Repository:getItems() return type from array to ResultsetInterface #15074

Added

  • Added BINARY and VARBINARY support for Phalcon\Db\Adapter\Mysql #14927
  • Added Phalcon\Db\Profiler\Item::getTotalElapsedNanoseconds() and Phalcon\Db\Profiler\Item::getTotalElapsedMilliseconds() for more precision #15249
  • Added Phalcon\Http\Response\Cookies::isSent() and Phalcon\Http\Response\Headers::isSent(); Added logic to not send the headers or cookies twice. #15334
  • Added Phalcon\Validation\Validator\File\AbstractFile::checkIsUploadedFile() method to allow overriding when adding files to the $_FILES array directly (not uploading). #15051
  • Added Phalcon\Support\Helper\Str\Interpolate to be used throughout the code for interpolation (Logger/Translator) %type% to %level% to align with the variables #15411
  • Added Phalcon\Support\HelperFactory for an easier creation/access of helpers #15411

Fixed

  • Corrected the Phalcon\Db\Profiler\Item calculation for seconds #15249
  • Corrected Phalcon\Http\Message\ServerRequestFactory to populate with superglobals #15286
  • Corrected Phalcon\Mvc\Model\Query\BuilderInterface::orderBy to use var instead of string #15415
  • Corrected Phalcon\Db\Adapter\Pdo\AbstractPdo::connect to take into account the persistent option for relevant connections #15241
  • Corrected Phalcon\Image\Adapter\Gd::processText to correctly call imagettfbbox when a font is specified #15188
  • Corrected Phalcon\Cache to cast keys as strings before sending them to adapters #15249
  • Binding form values with specified whitelist #15070

5.0.0-alpha.1 (2020-03-31)

Fixed

  • Support for PHP 7.4 and PHP 8.0
  • Fixed Logger\Log::log() log to recognize all log levels #15214
  • Changed setClaims to be protected so that the Phalcon\Security\JWT\Builder class can be properly extended. #15322
  • Fixed Phalcon\Mvc\Model::average() to return float value when is string #15287
  • Fixed Phalcon\Storage\Serializer\Igbinary to store is_numeric and bool values properly #15240
  • Fixed Phalcon\Validation\Validator\Confirmation was failing to compare cases such as 000123 = 123 #15347
  • Fixed Phalcon\Storage\Adapter failing to retrieve empty like stored data (such as [], 0, false) 15125
  • Fixed declarations for function getEventsManager() to allow null return 15010
  • Removed underscore from method names (starting) to abide with PSR-12 15345
  • Fixed Phalcon\Flash\Session::has() to properly check if any messages are existing 15204
  • Fixed signature of Phalcon\Forms\Element\Select::__construct()
  • Fixed signature of Phalcon\Assets\Manager::addCss()
  • Fixed signature of Phalcon\Assets\Manager::addJs()
  • Fixed signature of Phalcon\Db\Adapter\AdapterInterface::execute(), Phalcon\Db\Adapter\AdapterInterface::fetchOne() and Phalcon\Db\Adapter\AdapterInterface::query()