CakePHP Changelogs

Version 3.7.0-beta1

  • 03da862 Update version number to 3.7.0-beta1
  • 5f48d3c Add SimpleCacheEngine::add()
  • 72dda63 Fix regex for PHP 7.3
  • e77eeb8 Fix regex for PHP 7.3
  • 7b3c867 fix CS
  • ee91669 re-add old test
  • 880e505 fix test
  • 53bf05d revert
  • a7c196a fix bug
  • 45e50d0 getErrors
  • b2f4ea6 Minor rewording
  • 4ffd394 Correct deprecation warning statement
  • 78b5807 Deprecate RequestHandler's wrapper methods.
  • 788985f Add CacheEngineInterface and SimpleCacheEngine implementation
  • 7c11214 SimpleCacheEngine::setMultiple() should return boolean as dictated by CacheInterface.
  • 09f1772 Update IntegrationTestCase tests to respect new logic.
  • 1085ced Update reverse route matching to default to GET.
  • 508f3be Add a failing test.
  • c71b1d4 Add getter/setter for `Association::className()`.
  • 1196788 Remove message from assertSame
  • bcae0f3 Make implicit TODO comment a explicit one
  • 3f0bdd6 Exclude TODO sniff for 3.next development
  • cc180df Reword warning
  • d755924 Make RouteBuilder::redirect() return route instances
  • accce47 Make mocks more representative of actual behavior.
  • 0c2fb5c Use deprecationWarning()
  • 04ff004 Always download composer.phar
  • 149662b Try removing the check for cached files to make the tests runs reliably.
  • 279eb4b docs: Switch from master/slave in datasource readme
  • 698ad5d Use getRequest() instead of request
  • 8d44d24 Warn if CsrfComponent is used together with CsrfProtectionMiddleware
  • bbaa40b Start using pool() internally in Cache
  • 90cf5e8 Add |null
  • c9249af Allow instance of HttpApplicationInterface in RoutingMiddleware
  • d500edf Using "camelize" instead of "underscore" for fixture names.
  • 6e6db69 Fix tests.
  • f86a585 Throw warning when using underscored fixture names.
  • 1c79759 Reword test case short description
  • 835cca4 Removed some conditionals from review notes.
  • 4a08af5 Fix failing unit tests.
  • 8f762eb Fix phpcs and phpstan errors.
  • 2de8cd8 Add a test for curl proxy user.
  • 892111f the value may not contain a colon
  • 4ab2d03 Adding missing CURLOPT_PROXYUSERPWD option in Curl Adapter
  • c642ca7 Throw exception on `manyToPHP()` for non-numeric.
  • ee0d550 Fix typo
  • d047b7a Do not calculate range twice
  • 984d070 Reword exception message and assert it in test
  • 00bfe1d Example, it's just one
  • de941f5 Add missing parameter annotations
  • 536326c LastN not LasN
  • db62509 Add coverage annotation to improve the meaningfulness of the coverage
  • 8aac6cf Check for `is_numeric()` instead of `is_scalar()`.
  • ab07e3f Fixed example
  • b37ff65 Fixed mistake
  • 1faeb0f fixed typo
  • c16960b Fix CS
  • 87b3a5a Fix CS
  • 4f34d9a TTL, not ttl
  • 907ba79 Loosen test assertion as the specs do not guarantee the key order
  • c5a2056 Improve test readability
  • be1c693 Improve test readability
  • 4baa5a0 Rename $inner to $innerEngine to use the same name as in the subject under test
  • 4bede6a Add property type hints
  • a57ba73 Not only expect the exception but also its message
  • 0e4ff8c Start with capital letter
  • bc92c15 Add test coverage annotation to improve the meaningfulness of the coverage
  • b1cce65 Add ensureValidKeys() to ensure the validity of cache key sets
  • 3ae0921 Added a collection lazy() method
  • 80acc06 Reword exception explanation
  • a8ef06d Reword exception explanation
  • 8900def Reword exception explanation
  • 19b9808 Reword exception explanation
  • a278093 Reword exception explanation
  • 73ee931 Reword method short description
  • cd98e3c Reword exception explanation
  • c8c3af2 Reword method doc block
  • 2507033 Reword invalid cache key exception slightly
  • a200507 Rename checkKey() to ensureValidKey()
  • 97316fc Typo
  • 5d1d726 Rename $inner to $innerEngine
  • fccc1e5 Add link to PSR-16 specs
  • b9ad6ad Rename imported InvalidInterface to InvalidArgumentInterface
  • cc1372d Rename to takeLast
  • 4fa8158 Adding an explanation to the dense implementation of lastN
  • 479f87e Fixed code for lastN when passing a countable
  • f2525fc Remove unneeded assertion.
  • a56c9ff Fix docblock
  • 56b90b2 Implemented a new lastN() method in Collection
  • 7311be4 Add missing doc strings.
  • 9375e28 Fixing style errors.
  • c259c55 Add pool() method to Cache
  • 073ed9c Complete first draft of simple cache adapter implementation.
  • ec42f97 Implement several of the methods needed for psr16
  • 7f7f1b8 Add new dependency for psr16 interfaces.
  • 64e46c6 Add test for session.close
  • 91e19a5 Remove noise in travis output.
  • f2fd9bb mark the session as stoped
  • c6fd3f2 session write & close
  • 8f5318d Allow using any error code in range 4xx-5xx as HTTP status code.
  • 7a7eed8 Always call custom exception renderer method.
  • a223403 Small typo in TransportRegistry.php
  • eb888b4 Update deprecation message.
  • 952e227 Fix typos
  • 406cd08 Use type TransportRegistry instead of ObjectRegistry.
  • 726dd7f Add back Email::$_dsnClassMap to make phpstan happy.
  • d18e89c Fix errors reported by phpstan.
  • 95f37b2 Update usage of deprecated methods.
  • c87ad09 Add an option on extractTask to avoid the display of marker errors
  • d8c7e19 Add an option on extractTask to avoid the display of marker errors
  • dcfe6d1 Deprecate ViewVarsTrait::$viewVars.
  • b754ce7 Add an option on extractTask to avoid the display of marker errors
  • dc53a1f Fix tests.
  • e960656 Marshal string values to null for FloatType and DecimalType.
  • 432ed3b Don't marshal arrays to 1.0.
  • 399624a Marshal non scalar values to null.
  • a7e21d3 Don't marshal arrays to 1.
  • 9d749c8 Update CookieCryptTrait.php
  • 401870e Add deprecation warning.
  • 89def31 Fix mistake.
  • 5f5be0a Fix inheritance.
  • 8a038cf Use deprecationWarning().
  • c160876 Add constraint class for header not contains
  • 8802e1f Fix CS error.
  • 471b1f0 Add TransportFactory and update Email class to use it.
  • 63817ff Fix filename.
  • e7c731e Check for class under deprecated namespace too.
  • 369acf5 Add TransportRegistry.
  • f005082 Add ViewBuilder::hasVar().
  • 3b07ca1 Add assertHeaderNotContains()
  • de8c639 Adapt assertRedirectNotContains to use constraints.
  • 3de3879 fixes #12446
  • 5ed1968 Deprecate ViewVarsTrait::viewOptions() and related property.
  • f89b624 Merge view vars when building View instance.
  • a75d28f Add property and methods for view vars to ViewBuilder.
  • f9b0da9 Update use of deprecated methods in Mailer and it's tests.
  • 92837bd Add tests for deprecated methods.
  • 2a451fd Deprecate Email methods which wrap view builder methods.
  • 64ba223 Removing whitespace
  • e569767 Adding /u modifier for all regexes that do the quoting.
  • d81f82a Adding unit tests
  • c721ea4 assertEquals is missing here - was this on purpose?
  • 9f4a0c4 Use a boolean option instead of yes/no
  • f017463 Rename Validation::cc() to Validation::creditCard()
  • cef07d3 Add test for new relative-path option.
  • fccfaf2 remove hasRendered methods from view
  • ded811d Make it possible to show just the relative paths in the .pot files generated by I18nShell
  • 4468de9 Add method to reset View::$hadRendered flag.
  • f633dc9 add proper annotation
  • cf7fc08 remove phpstan/phpstan-phpunit
  • 86c03ea Make ExceptionRenderer properties protected.
  • bc27f17 Fixing style errors.
  • 74bf9d1 Enable `_ids` to work when updating has many associations
  • 75335d2 Fix error reported by phpstan.
  • 67ba3bf Add supported for prefixed ErrorController.
  • 5d935e3 use phpstan/phpstan-phpunit for mocks
  • 70faadd Fix method annotation.
  • 9dc5227 Deprecate logQueries()
  • f9d2db1 change the method to support array only
  • fbd8a17 Don't load missing plugins.
  • 11777be Clarify doc block.
  • 02ceac0 Backport isConfigured
  • 08c667f Backport Plugin::isLoaded()
  • 6e70be9 Unit Test for the hasErrors() method.
  • 3dea5f9 Test the hasErrors debug information
  • dbb40ce When debugging the Entity we also want to know if it (or one of the nested entities) has errors.
  • c45b982 Changed the method documentation for hasErrors() in the EntityInterface to reflect the parameter in EntityTrait.
  • 837f4de There is no need to type check for booleans in if statements when the return values are already a boolean.
  • 269bf84 The function _readHasErrors() accepts a mixed type of values.
  • aa1d565 There is no need to type check for booleans in if statements when the return values are already a boolean.
  • 4fd4840 Made the argument name a bit shorter and added a more descriptive parameter comment.
  • b78eae9 adjust tests to deprecate Plugin:load()
  • 7ddc4a1 We want one single source of truth when we want to know if an entity has errors. Nested entities should also be taken in consideration.
  • 7be710d just adding plugin without bootstrap
  • e0f6112 unload plugins after use
  • b2d58cf unload() plugins after use
  • e01b9c7 replace Plugin::load() with $this->loadPlugins() in tests
  • 8718c82 fix cs
  • 5945d39 add a test/helper method for loading Plugins with Application
  • f597821 When debugging we also want to know if the Entity is persistable.
  • 4069319 Renamed the property _hasErrors and method hasErrors() to respectively _canBePersisted and canBePersisted().
  • f620cad A clean Entity doesn't have errors.
  • b21c5f3 If an entity has error messages we set the property _hasErrors to true. We use this property to check if the Entity can be saved without going trough all the errors.
  • f6cdc6f deprecate the Plugin::load/loadAll/bootstrap()
  • d710f9c Make entity context recognize schema defaults of associations.
  • 9bd72b6 Replace deprecated 'fieldList' with 'fields' in phpdoc
  • 66f90bd Move plugin configuration file loading to PluginCollection
  • a527927 Use Plugin::load() when creating classless plugins.
  • 38f2e89 Fix coding standards and improve assertions.
  • ae68c5e Fix mistake.
  • 0c8b86b Skip tests when curl is missing & suggest it in composer.
  • 5e0a10c replace for loop with array_diff
  • 13a063a Fixing style errors.
  • e080ce0 add trim to make clientIp method always return string
  • ccbd3ac add empty string if REMOTE_ADDR not exists
  • 9a0bc43 remove else after return and inline assignment
  • 4061792 add @return to setTrustedProxies method
  • 7d9d7e7 Fixing style errors.
  • 28f27f3 fix clientIp method
  • a1ab1b5 Deprecate the read side of join() and from()
  • 5570206 Deprecated View::uuid() as it's unused in core.
  • 1623fb5 Fix warning for verify peer options & add status codes.
  • 5e08596 Add support for custom curl options.
  • 66dc497 Fix doc block
  • bdd8b9c Handle DNS failure.
  • 82779f2 Finish basic implementation and add live network tests.
  • f3f5b08 Start implementing SSL options.
  • eb9d37b Fix error reported by phpstan.
  • d0a26a3 use array instead of boolean
  • 1aaa1e8 Fixing style errors.
  • 6a5fd9b Remove Helper::$request use View::getRequest()/setRequest() instead.
  • a744362 Update warning messages.
  • 50e421c Fix use of removed property.
  • 370f2d8 Remove again unused property removed in #12187.
  • 75909f9 Make Helper::$helpers protected.
  • 35cb88c Deprecate unused Helper properties.
  • 754559d Remove Helper::$theme/$plugin.
  • b5d250e Update test.
  • e406cab Start implementing options and tests for Curl adapter.
  • 313ce9c Remove extra argument.
  • a18fd54 Add stub class for Curl adapter.
  • 9dd3762 Add adapter instance type check.
  • 065556f Add interface for http client adapters.
  • 4400415 Make Cell::$View protected.
  • 64310d9 Make Cell::$request/$response protected.
  • 406dce8 Updated the test cases to remove deprecated usage of the withCookie method
  • 3cbefae Updated deprecated method usage in Components
  • 27b7b43 Make Cell::$args and Cell::$action protected.
  • 722fd02 Remove Cell::$helpers. Use cell's view builder methods instead.
  • bd760e4 Remove Cell::$plugin. Use cell's view builder's instead.
  • e298d36 Remove Cell::$template. Use cell's view builder's methods instead.
  • 68c350b Try to get helper first before checking for deprecated properties.
  • 93c9d94 Deprecated the withCookie methods array components and updated associated tests.
  • b9a1ade Updated the tests to use non-empty path component, as specified in RFC6265
  • 834c7cc Add `@since` tags.
  • 695e308 Make View::$name protected and added getter/setter methods for it.
  • 19795f6 Make View::$plugin protected and add getter/setter for it.
  • 9f2a773 add deprecationWarning to PaginatorHelper::generateUrl()
  • b2d9bbb Fix tests.
  • 71b862d Make View::$helpers protected.
  • 3b60cbe Make View::$elementCache protected and add setter method for it.
  • 646937d Make View::$subDir protected and add getter/setter methods.
  • 450d00b Update propterty visibility in child classes of View.
  • 0f15196 Make View::$hasRendered protected as add getter method for it.
  • 1462dde Make View::$Blocks protected.
  • b3cd9a6 Make various public properties of View class protected.
  • 2f8a893 Fixing style errors.
  • 583dd73 Deprecate public properties in View class.
  • 2d6c619 Use getter/setter methods instead of directly accessing properties.
  • 468280b Updated return typehint for ContextInterface::getRequiredMessage
  • fa50e89 Skipped __d function check in ArrayContext
  • a031552 Removed unnecessary addslashes
  • a9a943a Use getter/setter instead of deprecated properties.
  • 74dcab6 testLoadHtml generate original html string from xml
  • cc2cef6 Revert "Fixing style errors."
  • 7994e40 testLoadHtml: Fix regenerate of original html string
  • 6572d67 testLoadHtml generate original html string from xml
  • 6265846 Fixing style errors.
  • 9cddc7e Update sample.html and testLoadHtml
  • 9f655e4 Fix testLoadHtml
  • 0c93b2b Test parseHuge and Exception in loadHtml
  • 2084db1 Fix sample.html
  • c0961d1 Add test for loadHtml method
  • 5d98e7a Setting default values for $options in loadHtml()
  • f517aa4 Fixing style errors.
  • ccf21ba Fixing style errors.
  • 42aab01 Create method for import html
  • b464b44 Add tests.
  • 97c9ba1 Add docblocks.
  • 79be6c0 Add data property.
  • 551f93b Remove boolean param for merging.
  • db0aeba Check for form data in FormContext.
  • 5e32ece Add methods to get/set modelless form data.
  • 1bd51ab Add magic property doc hint.
  • 7995061 Deprecated normalizePath to fix it in the new method normalizeFullPath.
  • 2835fe6 Attempt to fix constant namespacing issues.
  • a376538 Deprecated normalizePath to fix it in the new method normalizeFullPath.
  • 2bfa0d3 Fix typo
  • 4288e96 Added test for asserting flash messages before sending request
  • 57f6393 Deprecated normalizePath to fix it in the new method normalizeFullPath.
  • 61f5c8e Deprecated normalizePath to fix it in the new method normalizeFullPath. Added some directives for code analysis (Change directive writing x2 for Travis CI). Added deprecationWarning, and suppress noinspection directive for deprecation. Added deprecated function in Test function.
  • 2797730 Remove re-execution of buffered queries.
  • 043df24 Simplify BufferedStatement
  • 9172828 Deprecated normalizePath to fix it in the new method normalizeFullPath. Added some directives for code analysis (Change directive writing x2 for Travis CI). Added deprecationWarning, and suppress noinspection directive for deprecation
  • 3ea9cfe Deprecated normalizePath to fix it in the new method normalizeFullPath. Added some directives for code analysis (Change directive writing x2 for Travis CI).
  • 05fe0ea Deprecated normalizePath to fix it in the new method normalizeFullPath. Added some directives for code analysis (Change directive writing for Travis CI).
  • 6784e9e Deprecated normalizePath to fix it in the new method normalizeFullPath. Added some directives for code analysis.
  • 98f5419 Rename property.
  • 626c0a0 FormHelper::postLink(), and HtmlHelper::link() updated to allow users to supply their own javascript for displaying a confirm window. Milestone #11924
  • a53de2a Fix PHPStan warning.
  • 58d5628 Added note about enableRetainFlashMessages in constraint error
  • 88417f8 Added assertions for flash messages
  • 48c3dc9 Make test conditional on sqlite.
  • 847d5bb Keep the transliterator identifier getter/setter.
  • 35dcf38 Fix implementation of BufferedStatement
  • 5d96beb Fix some of the issues with buffered queries not buffering.
  • b29fd68 Make `\Cake\Utility\Text` accept `\Transliterator` objects.
  • e93bbb8 IBAN validation + test added (#12092)
  • 2e5970c Fixed trait merge not getting fix from 1cc085d8d7607e621cee8a22ef14e0e47d8f39f9
  • 916d025 Fix empty QueryExpression objects being converted as SQL
  • ea19d0f Set PHP_SELF in the integration test case.
  • 102ed1a Added SQL RAND() function.
  • 4de02fe Optimized shorthand ternary operator #11795
  • 962069a Removed bonus lines #11795
  • 349a0ec Moved PHPUnit aliases into phpunit_aliases file
  • a6af78a BC for older PHPUnit versions
  • beb80fd Fixed using reserved word
  • 04da3de CS fixes
  • 41ed9aa Renamed integration test case tests to trait tests
  • 92e34fe Fixed console test trait tear down
  • dac9989 Cleaning up assertion failure messages, added tests for them
  • e2f581b Gave body assertions proper constraints
  • fd022b6 Added test #11795
  • 3a87631 Optimized assignment and condition #11795
  • 6b17679 Changed comment of return type #11795
  • 0738fe0 Refactored new assertResponseNotEquals to use constraints
  • d3077a0 Marked new constraints as internal
  • f31abd7 Fixing style errors.
  • 3f6dbee Fixed return type (array) #11795
  • 605ffb5 Added constraints for asserting file sent
  • aad49b6 Cleaned up header assertions, added assertions for redirects
  • 221612d Added constraints for session
  • 266225c Added constraints for cookies
  • 9869e5f Added constraints for template/layout files
  • 0445b25 add: assertResponseNotEquals() and test case.
  • 1685b74 Renamed requiredMessage template var to customValidityMessage
  • 4975dfc Added body related constraints
  • e1bde25 Added constraints for header, content type
  • 8696c78 Marked constraints as internal
  • 24426e2 Added deprecation annotation to EmailAssertTrait
  • 69edc91 Deprecate Cell::$request, Cell::$response as public properties.
  • 0131004 Update docblocks.
  • 3812dde Fixed EmailTraitTest after removing EmailTrait from TestCase
  • b7cfe84 Fix docblock.
  • aea9910 Add View::getResponse()/setResponse().
  • e6463eb Deprecate using View::$request as public property.
  • 88acd45 Removed EmailTrait from TestCase
  • 8640425 Added test for entities in message, fixed entities in requiredMessage template var
  • 18c8cbf Injecting requiredMessage into templateVars
  • 26d95b0 Renamed form helper option useValidationMessages to autoSetCustomValidity
  • 952552c Fixed multiple addresses in same variable
  • e4dee68 Revert "Remove test that wasn't reverted properly."
  • 6b80c86 Restore changes from 11978
  • 17ec980 Update test.
  • 3eaff24 CS fix
  • f2ceb41 Added assertions for text and html contents of emails
  • a112d93 Moved and renamed mail constraints
  • f87f994 Added TestEmailTransport::replaceAllTransports()
  • a262807 Fixed phpstan issue
  • afe41ad Return null on failure.
  • 8afe359 Ensure ArrayContext::error() always returns array.
  • ee45e1b Dropping existing configs for test
  • 028800a Added constraints for response status code assertions
  • 8822119 Made IntegrationTestCase into a trait
  • e96b515 Refactored ConsoleIntegrationTest into trait with proper constraints
  • 00c9a9e Made base constraint abstract
  • 75cc773 Fixed CS
  • e5d99f6 Added EmailTrait and TestEmailTransport for making assertions on emails
  • 3a17969 Bump version for 3.7.0
  • 7392b85 CS fix
  • eb10afe Added tests for null required and empty messages
  • f6b6bdc Returning null for get(Required|NotEmpty)Message when no ValidationSet exists for the field
  • e3af681 Removed interface method in favor of annotation for BC
  • 6e2e6d2 Using string literals instead of constants/vars for translation
  • 0905adc Returning notBlank message early
  • 0759d76 Extracting notBlank message and using it before notEmpty ones
  • e7f2d48 Renamed Validator::getEmptyMessage to getNotEmptyMessage
  • a5ab64d Added support for ArrayContext
  • aeb9694 Fixing style errors.
  • 7771f1f Added support for getting custom message from Form validator
  • fcdd37f Using h() to encode validation messages
  • 4a9813f Added Validator::getEmptyMessage and getRequiredMessage
  • 00ed234 Added form helper option 'useValidationMessages' to opt-in to custom html5 validation
  • ee70bb8 Renamed getErrorMessage to getRequiredMessage
  • 7ce78b1 Adding custom form control validation messages for required fields
  • 5823d82 Added ContextInterface::getErrorMessage and EntityContext implementation
Back

Changelogs