v4.0.0
Supported PHP Versions: 7.2, 7.3, 7.4
Added
- Added the ability to
Phalcon\Model::findFirstBy*
andPhalcon\Model::findBy*
to process passed parameters (fororder
etc.) #14573 - Added
Phalcon\Helper\Str::decrement
to remove a number from a string or decrements that number if it already is defined #14599 - Added Exception storing and getting in the
Phalcon\Domain\Payload\*
#14575 - Added options array in
Phalcon\Http\Cookie
in the constructor as well asgetOptions
andsetOptions
(ref #14627 - future work) #14575 - Added options array in
Phalcon\Http\Response\Cookies
in theset()
(ref #14627 - future work) #14575
Changed
- Changed
Phalcon\Mvc\Router\Annotations
to useconverters
instead ofconversors
#14532 - Changed
Phalcon\Di::setRaw
toPhalcon\Di::setService
to align more with the use of the method #14555 - Changed
Phalcon\Http\CookieInterface
toPhalcon\Http\Cookie\CookieInterface
to avoid confusion #14602 - Changed
Phalcon\Storage\Adapter\*::getKeys
to accept an optional$prefix
so as to filter the keys returned #14575 - Changed dates reported by the logger to use the
"c"
date mask for better sorting #14575 - Changed the
Phalcon\Storage\Adapter\*
constructors to require thePhalcon\Storage\SerializerFactory
object #14575
Fixed
- Fixed
PhalconMvc\Model
to ignore internal setters if properties have the same name as the setter #14538 - Fixed
Phalcon\Logger\Formatter\Line
to not addPHP_EOL
at the end of the message and added it to thePhalcon\Logger\Adapter\Stream
#14547 - Fixed
Phalcon\Mvc\Model\MetaData\Apcu
andPhalcon\Mvc\Model\MetaData\Redis
to allow setting theprefix
andlifetime
using the options or use the default. #14549 - Fixed
Phalcon\Storage\Adapter\AbstractAdapter
,Phalcon\Storage\Adapter\AbstractInterface
getters to contain a default value - Fixed
Phalcon\Storage\Adapter\Memory
initializing the array store correctly #14551 - Fixed
Phalcon\Storage\Adapter\Stream
to capture notice if the stream is not opened properly #14551 - Fixed
Phalcon\Security::getRandomBytes
to returnint
#14551 - Fixed
Phalcon\Security
to use10
as the default work factor #14551 - Fixed
Phalcon\Helper\Arr::validateAny
andPhalcon\Helper\Arr::validateAll
to usenull
as default for the callback method #14551 - Fixed
Phalcon\Escaper::escapeHtml
andPhalcon\Escaper::escapeHtmlAttr
to allownull
values #14553 - Fixed
Phalcon\Mvc\Model::cloneResultMap
to correctly recognize aliased fields and include them in the resultset #14488 - Fixed
Phalcon\Http\Request::getQuery
,Phalcon\Http\Request::getPut
,Phalcon\Http\Request::getPost
to treat0
as non empty forallowNoEmpty
#14556 - Fixed
Phalcon\Router::handle()
to use the/
route on empty string #14559 - Fixed
Phalcon\Storage\Adapter\Libmemcached::getKeys
andPhalcon\Storage\Adapter\Redis::getKeys
to return the keys that are prefixed only for that adapter #14575 - Fixed factories to return a new instance when calling
newInstance
and not a cached one from the internal mapper #14584Phalcon/Annotations/AnnotationsFactory
Phalcon/Cache/AdapterFactory
Phalcon/Config/ConfigFactory
Phalcon/Db/Adapter/PdoFactory
Phalcon/Image/ImageFactory
Phalcon/Logger/AdapterFactory
Phalcon/Paginator/PaginatorFactory
Phalcon/Storage/AdapterFactory
Phalcon/Storage/SerializerFactory
Phalcon/Translate/InterpolatorFactory
Phalcon/Translate/TranslateFactory
Phalcon/Validation/ValidatorFactory
- Fixed
Phalcon\Mvc\Model::cloneResultMap
to cast integers when fields areTYPE_BIGINTEGER
,TYPE_INTEGER
,TYPE_MEDIUMINTEGER
,TYPE_SMALLINTEGER
,TYPE_TINYINTEGER
#14584 - Fixed
Phalcon\Http\Response::setCookies
to use the correct interface #14602 - Fixed
Phalcon\Test\Unit\Image\Adapter\Gd::processBackground
to correctly calculate the alpha value #14609 - Fixed
Phalcon\Logger\Adapter\AdapterInterface
adding missinginTransaction()
#14575 - Fixed
Phalcon\Mvc\Model::cloneResultsetMap
to remove fatal error when looking up the columnMap. #14619 - Fixed
Phalcon\Http\Request\FileInterface
by addinggetError
that was missing. #14633
Removed
- Removed ACL Firewall component from 4.0.x branch #14630