5.0.0alpha7 (xxxx-xx-xx)
5.0.0alpha6 (2021-09-16)
- Adjusted the constructor for
Phalcon\Storage\Adapter\*andPhalcon\Cache\Adapter\*to allow an empty key prefix to be set if needed. #15480 - Changed:
Phalcon\Db\Adapter\AdapterInterface:lastInsertId()to be identical asPdo:lastInsertId()Phalcon\Db\Adapter\AdapterInterface:close()now returnsvoidinstead ofboolPhalcon\Db\Adapter\AdapterInterface:connect()now returnsvoidinstead ofbooland 1st argument default value is emptyarrayinstead ofnull#15659
- Added
Phalcon\Security\JWT\Builder::addClaimfor custom JWT claims. #15656
5.0.0alpha5 (2021-09-09)
- Merged all architectures (
build/phalcon/32bits,build/phalcon/64bitsandbuild/phalcon/safe) into single universal insidebuild/phalcon#15647
- Fixed C code in
build/directory #15647
5.0.0alpha4 (2021-09-05)
- Changed
composer.jsonto 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::setCssIconClassesandPhalcon\Flash\Session::setCssIconClassesto allow setting icons in the flash messages (bootstrap related) #15292 - Added
Phalcon\Http\Message\RequestMethodInterfaceandPhalcon\Http\Message\ResponseStatusCodeInterfacethat contain constants to be used for any HTTP implementations (see PHP-FIG) #15615
- Fixed
Phalcon\Containerinterface to abide withPsr\Container\ContainerInterfaceafter the upgrade to PSR 1.1.x #15504 - Fixed
Phalcon\Forms\Formwhen 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::__constructnow acceptsPsr\SimpleCache\CacheInterfacefor the cachePhalcon\Mvc\Model\Resultset\Simple::__constructnow acceptsPsr\SimpleCache\CacheInterfacefor the cachePhalcon\Mvc\Model\Resultset::__constructnow acceptsPsr\SimpleCache\CacheInterfacefor the cachePhalcon\Mvc\Model\Resultset::getCachenow returnsPsr\SimpleCache\CacheInterface#15471
- Changed
Phalcon\Db\Adapter\AbstractAdapter:delete()signature of optional parameters. #15363 - Changed
bindCountsargument 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()whenbindTypesargument is passed. #15363 - Fixed
Phalcon\Storage\Adapter\Redis::getAdapterto use passedconnectionTimeout,retryIntervalandreadTimeoutoptions for the connection #15484 - Fixed
Phalcon\Mvc\View\Engine\Volt\Compilerfor a use case when a block will return null vs an array forstatementListin PHP 8 #15556
5.0.0-alpha.2 (2021-05-05)
- Changed
Phalcon\Translate\Adapter\Gettext::setLocalesignature to allow the category and an array of locales #14764 Phalcon\Versionis now moved toPhalcon\Support\Version_getSpecialVersionand_getVersionhave been removed (marked deprecated in v4)- The class is no longer static; it has to be instantiated first
- References to
Phalcon\Debugand the Volt compiler have been adjusted #15422
Phalcon\Debugis 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::getNametoPhalcon\Logger\Item::getLevelName - Renamed
Phalcon\Logger\Item::getTypetoPhalcon\Logger\Item::getLevel - Changed the logger timestamp to be
DateTimeImmutableon a per item basis - more accurate timing - Changed
Phalcon\Loggerto accept aDateTimeZonein 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 | nullso 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|booltoRelationInterface|bool#15343 - Changed
Phalcon\Paginator\Repository:getItems()return type fromarraytoResultsetInterface#15074
- Added
BINARYandVARBINARYsupport 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$_FILESarray directly (not uploading). #15051 - Added
Phalcon\Support\Helper\Str\Interpolateto be used throughout the code for interpolation (Logger/Translator)%type%to%level%to align with the variables #15411 - Added
Phalcon\Support\HelperFactoryfor an easier creation/access of helpers #15411
- Corrected the
Phalcon\Db\Profiler\Itemcalculation for seconds #15249 - Corrected
Phalcon\Http\Message\ServerRequestFactoryto populate with superglobals #15286 - Corrected
Phalcon\Mvc\Model\Query\BuilderInterface::orderByto usevarinstead ofstring#15415 - Corrected
Phalcon\Db\Adapter\Pdo\AbstractPdo::connectto take into account thepersistentoption for relevant connections #15241 - Corrected
Phalcon\Image\Adapter\Gd::processTextto correctly callimagettfbboxwhen a font is specified #15188 - Corrected
Phalcon\Cacheto 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()logto recognize all log levels #15214 - Changed
setClaimsto be protected so that thePhalcon\Security\JWT\Builderclass can be properly extended. #15322 - Fixed
Phalcon\Mvc\Model::average()to returnfloatvalue when isstring#15287 - Fixed
Phalcon\Storage\Serializer\Igbinaryto storeis_numericandboolvalues properly #15240 - Fixed
Phalcon\Validation\Validator\Confirmationwas failing to compare cases such as 000123 = 123 #15347 - Fixed
Phalcon\Storage\Adapterfailing 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()