5.0.0-alpha.2 (2021-05-05)
- Changed
Phalcon\Translate\Adapter\Gettext::setLocale
signature to allow the category and an array of locales #14764 Phalcon\Version
is now moved toPhalcon\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 toPhalcon\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
toPhalcon\Logger\Item::getLevelName
- Renamed
Phalcon\Logger\Item::getType
toPhalcon\Logger\Item::getLevel
- Changed the logger timestamp to be
DateTimeImmutable
on a per item basis - more accurate timing - Changed
Phalcon\Logger
to accept aDateTimeZone
in the constructor - Changed placeholder
%type%
to%level%
to align with the variables #15411
- Renamed
- Changed
Phalcon\Mvc\Model::getSchema()
,Phalcon\Mvc\ModelInterface::getSchema()
,Phalcon\Mvc\Model\Manager::getModelSchema()
Phalcon\Mvc\Model\ManagerInterface::getModelSchema()
to returnstring | 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 fromRelation|bool
toRelationInterface|bool
#15343 - Changed
Phalcon\Paginator\Repository:getItems()
return type fromarray
toResultsetInterface
#15074
- Added
BINARY
andVARBINARY
support for Phalcon\Db\Adapter\Mysql #14927 - Added
Phalcon\Db\Profiler\Item::getTotalElapsedNanoseconds()
andPhalcon\Db\Profiler\Item::getTotalElapsedMilliseconds()
for more precision #15249 - Added
Phalcon\Http\Response\Cookies::isSent()
andPhalcon\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
- 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 usevar
instead ofstring
#15415 - Corrected
Phalcon\Db\Adapter\Pdo\AbstractPdo::connect
to take into account thepersistent
option for relevant connections #15241 - Corrected
Phalcon\Image\Adapter\Gd::processText
to correctly callimagettfbbox
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)
- 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 thePhalcon\Security\JWT\Builder
class can be properly extended. #15322 - Fixed
Phalcon\Mvc\Model::average()
to returnfloat
value when isstring
#15287 - Fixed
Phalcon\Storage\Serializer\Igbinary
to storeis_numeric
andbool
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()
andPhalcon\Db\Adapter\AdapterInterface::query()