Log message #4220470

# At Username Text
# Dec 30th 2019, 16:13 kevin.pfeifer im on cakephp4
# Dec 30th 2019, 16:13 slackebot <kevin.pfeifer>
# Dec 30th 2019, 16:10 dsar How do you output the value in the view?
# Dec 30th 2019, 16:08 kevin.pfeifer has anyone experienced problems with +1 year on the "modified" column? The values in the DB are correct but when i output the date with $entity->modified the output is +1 year. The $entity->created is fine.
# Dec 30th 2019, 15:56 tibor.hajos I'm finalizing my code regarding the HTTP part of this ticket https://github.com/cakephp/cakephp/issues/13493 I have a question on something I'm stuck with though. `Http/Middleware/CspMiddleware` implements the MiddlewareInterface, per PSR-15 requirements. However, in PHP <7 the interface is not yet available. I could leave it out, but that would be against PSR. Could anyone help me as to how I should proceed?
# Dec 30th 2019, 15:34 luizcmarin ok
# Dec 30th 2019, 15:33 ndm `2.0.3` was just released a few hours ago, their cache probably takes some time to update.
# Dec 30th 2019, 15:31 luizcmarin @ndm Just one comment: cakephp / bake is flagged as cakephp / bake ":" ^ 2.0.3 ", (https://raw.githubusercontent.com/cakephp/app/master/composer.json) but at https://semver.mwl.be/#!?package=cakephp%2Fbakeandversion=%5E2.0andminimum-stability=dev only up to 2.0.2. I don't know if this causes problems
# Dec 30th 2019, 15:24 luizcmarin @ndm understand.
# Dec 30th 2019, 15:24 dereuromark it is also annoying to have to switch dev- prefix to -dev suffix for these numeric branch names
# Dec 30th 2019, 15:23 dereuromark Thus my recommendation to use cake4 as branch names etc, dont use sth that can get confused with plugin major versions :)
# Dec 30th 2019, 15:21 ndm @luizcmarin The `4.x` branch of `cakephp/migrations` won't be released as version `4.0`, but as version `3.0`, it doesn't follow the same versioning as CakePHP, the `4.x` branch just means "_for CakePHP 4.x_". Bake is the same thing, `2.0` is the CakePHP 4.x compatible version, and it was previously maintained in a branch named `4.x`
# Dec 30th 2019, 15:15 luizcmarin ?
# Dec 30th 2019, 15:15 luizcmarin and "cakephp/bake": "^2.0",
# Dec 30th 2019, 15:12 luizcmarin @admad, pardon, but... you suggested in composer.json from https://raw.githubusercontent.com/cakephp/app/master/composer.json: "cakephp / migrations": "^ 3.0", but now that you've taught me how to use composer, could you suggest "^ 4.0"? https://semver.mwl.be/#!?package=cakephp%2Fmigrationsandversion=%5E4.0andminimum-stability=dev
# Dec 30th 2019, 14:31 luizcmarin I'll do it. :cakephp::thumbsup_all:
# Dec 30th 2019, 14:27 admad later read https://getcomposer.org/doc/articles/versions.md to understand how composer versioning works
# Dec 30th 2019, 14:26 admad then just run `composer update` whenever a new cake release is done
# Dec 30th 2019, 14:25 admad replace you composer.json with this one and forget about it https://raw.githubusercontent.com/cakephp/app/master/composer.json
# Dec 30th 2019, 14:22 luizcmarin Is the right for composer.json to keep updated is 4.0-dev or ^ 4.0?
# Dec 30th 2019, 14:22 luizcmarin ***ops
# Dec 30th 2019, 14:22 luizcmarin (*@admad thanks for the explanations already given. Just to finish:)
# Dec 30th 2019, 14:21 luizcmarin o certo para o compositor.json manter atualizado é 4.0-dev ou ^ 4.0?
# Dec 30th 2019, 13:43 tibor.hajos Awesome, thank your for the quick reply :)
# Dec 30th 2019, 13:42 dereuromark For readability better to store it in local var and then using $callable[] etc IMO.
# Dec 30th 2019, 13:41 tibor.hajos Hello, I'm currently taking a shot at the HTTP part of this ticket, https://github.com/cakephp/cakephp/issues/13493 So far, I have been able to make everything working with PHP < 7.0, but I encountered a Uniform variable syntax in `TestApp/Http/RequestHandler` ```return ($this->callable)($request);``` This is not my strong point. Is it possible to replace it with ```return $$this->callable[$request];``` ?
# Dec 30th 2019, 13:39 luizcmarin @jimbo2150 this is the point. That's what I want to know: Is my composer.json correct to keep me updated daily with the latest version and branches?
# Dec 30th 2019, 13:33 jimbo2150 Yes, but I believe @luizcmarin was asking if his composer.json dependencies are correct. Obviously "cakphp 4/x-dev" is behind. It would be nice if there were a function to update that file and work around modified parts.
# Dec 30th 2019, 13:32 luizcmarin The only plugin I personally installed was this: https://book.cakephp.org/4/en/tutorials-and-examples/cms/authentication-plugin.html#page-contents The rest I let (I hope) composer update does.
# Dec 30th 2019, 13:30 admad `composer update` is only supposed to updated the dependencies
# Dec 30th 2019, 13:29 jimbo2150 @admad unfortunatly `composer update` does not appear to update a composer.json file that has been modified (for plugins or otherwise) - at least for me. I have been copying the relevant parts from the app skeleton.
# Dec 30th 2019, 13:28 jimbo2150 As far as the composer.json file, I would say you are safe using the cakephp/app composer.json (use the master for 4.0.x or the branch of the version you are using): https://github.com/cakephp/app/blob/master/composer.json
# Dec 30th 2019, 13:28 jimbo2150 @luizcmarin Noticed that and submitted a bug: https://github.com/cakephp/cakephp/issues/14099
# Dec 30th 2019, 13:26 admad just run `composer update` if you have already started a cake 4 app
# Dec 30th 2019, 13:25 luizcmarin @admad and my composer.json is correct? I try to keep it updated daily.
# Dec 30th 2019, 13:23 luizcmarin @admad good to know. I thought I didn't help at all, just correcting grammar and semantics. Thanks
# Dec 30th 2019, 13:20 admad @luizcmarin the zip is broken
# Dec 30th 2019, 13:11 slackebot cakephp": "3.8. *",          "cakephp / migrations": "^ 2.0.0",          "cakephp / plugin-installer": "^ 1.0",          "mobiledetect / mobiledetectlib": "2. *"      }, " Question 1: Shouldn't the versions be any different? "3.8" Question 2: I haven't seen my cakephp / cakephp update for days. Is my composer setup correct?
# Dec 30th 2019, 13:11 luizcmarin question: my composer.json: "" require ": {          "php": "> = 7.2",          "cakephp / authentication": "^ 2.0",          "cakephp / cakephp": "4.x-dev",          "cakephp / plugin-installer": "^ 1.0",          "mobiledetect / mobiledetectlib": "2. *"      }, " composer.json cakephp-4-0-1.zip (downloaded now):   "" require ": {          "php": "> = 5.6",          "cakephp /
# Dec 30th 2019, 13:11 luizcmarin hi boys
# Dec 30th 2019, 11:38 challgren Ahh ok