5.0.0alpha6 (xxx-xx-xx)
5.0.0alpha5 (2021-09-09)
- Merged all architectures (
build/phalcon/32bits
,build/phalcon/64bits
andbuild/phalcon/safe
) into single universal insidebuild/phalcon
#15647
- Fixed C code in
build/
directory #15647
5.0.0alpha4 (2021-09-05)
- Changed
composer.json
to use PSR 1.1.x #15504 - Changed
Phalcon\Di\Injectable:getDI()
to set default DI when no DI is set #15629
- Added
Phalcon\Flash\Direct::setCssIconClasses
andPhalcon\Flash\Session::setCssIconClasses
to allow setting icons in the flash messages (bootstrap related) #15292 - Added
Phalcon\Http\Message\RequestMethodInterface
andPhalcon\Http\Message\ResponseStatusCodeInterface
that contain constants to be used for any HTTP implementations (see PHP-FIG) #15615
- Fixed
Phalcon\Container
interface to abide withPsr\Container\ContainerInterface
after the upgrade to PSR 1.1.x #15504 - Fixed
Phalcon\Forms\Form
when no entity is passed with isValid(), it uses the entity set in the form #15567 - Fixed
Phalcon\Logger\Adapter\*
to not allow serialization of the object. Added an exception when destroying the object while in transaction mode #15638
5.0.0alpha3 (2021-06-30)
- Changed version format to allow alpha/beta/RC releases on PECL.
- Changed:
Phalcon\Mvc\Model\Resultset\Complex::__construct
now acceptsPsr\SimpleCache\CacheInterface
for the cachePhalcon\Mvc\Model\Resultset\Simple::__construct
now acceptsPsr\SimpleCache\CacheInterface
for the cachePhalcon\Mvc\Model\Resultset::__construct
now acceptsPsr\SimpleCache\CacheInterface
for the cachePhalcon\Mvc\Model\Resultset::getCache
now returnsPsr\SimpleCache\CacheInterface
#15471
- Changed
Phalcon\Db\Adapter\AbstractAdapter:delete()
signature of optional parameters. #15363 - Changed
bindCounts
argument to array type in:Phalcon\Db\Dialect:getColumnList()
Phalcon\Db\Dialect:getSqlColumn()
Phalcon\Db\Dialect:getSqlExpression()
Phalcon\Db\Dialect:getSqlExpressionBinaryOperations()
Phalcon\Db\Dialect:getSqlExpressionCase()
Phalcon\Db\Dialect:getSqlExpressionCastValue()
Phalcon\Db\Dialect:getSqlExpressionConvertValue()
Phalcon\Db\Dialect:getSqlExpressionFunctionCall()
Phalcon\Db\Dialect:getSqlExpressionGroupBy()
Phalcon\Db\Dialect:getSqlExpressionHaving()
Phalcon\Db\Dialect:getSqlExpressionJoins()
Phalcon\Db\Dialect:getSqlExpressionLimit()
Phalcon\Db\Dialect:getSqlExpressionList()
Phalcon\Db\Dialect:getSqlExpressionObject()
Phalcon\Db\Dialect:getSqlExpressionOrderBy()
Phalcon\Db\Dialect:getSqlExpressionScalar()
Phalcon\Db\Dialect:getSqlExpressionUnaryOperations()
Phalcon\Db\Dialect:getSqlExpressionWhere()
Phalcon\Db\DialectInterface:getSqlExpression()
- Fixed
Phalcon\Db\Adapter\AbstractAdapter:delete()
whenbindTypes
argument is passed. #15363 - Fixed
Phalcon\Storage\Adapter\Redis::getAdapter
to use passedconnectionTimeout
,retryInterval
andreadTimeout
options for the connection #15484 - Fixed
Phalcon\Mvc\View\Engine\Volt\Compiler
for a use case when a block will return null vs an array forstatementList
in PHP 8 #15556
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 (2021-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()