# |
Dec 16th 2019, 16:15 |
neon1024 |
As `master` composer file now requires 4.0 |
# |
Dec 16th 2019, 16:14 |
neon1024 |
Which branch do I target pull requests to cakephp/bake for 3.x compatible versions? |
# |
Dec 16th 2019, 15:33 |
neon1024 |
This project is on 3.something |
# |
Dec 16th 2019, 15:27 |
admad |
k, i was afraid we broke something in 4 hence checked :) |
# |
Dec 16th 2019, 15:24 |
neon1024 |
I presume it was a string and something didn’t like it |
# |
Dec 16th 2019, 15:24 |
neon1024 |
I updated my typehint to `DateTimeInterface` and wrapped the input in `FrozenTime` and it worked fine |
# |
Dec 16th 2019, 15:21 |
admad |
> Why doesn’t the dateTime validation like 2019-12-19T12:30 I just checked and Validator::dateTime() accepts that values |
# |
Dec 16th 2019, 15:13 |
birdy247 |
lol, expalins our bug |
# |
Dec 16th 2019, 15:10 |
neon1024 |
Sure, but it won’t be persisted |
# |
Dec 16th 2019, 15:10 |
birdy247 |
In theory, can an afterSave be used to set a property on the entity being saved |
# |
Dec 16th 2019, 15:09 |
neon1024 |
I was so sure that FrozenTime implemented DateTime |
# |
Dec 16th 2019, 15:06 |
neon1024 |
Why doesn’t the dateTime validation like `2019-12-19T12:30` |
# |
Dec 16th 2019, 15:03 |
neon1024 |
Is there a neat way to stop Cake wrapping errors with HTML tags? |
# |
Dec 16th 2019, 14:25 |
neon1024 |
Sorry @admad I use the library directly |
# |
Dec 16th 2019, 14:24 |
admad |
can anyone using codeception help review https://github.com/cakephp/codeception/pull/51 |
# |
Dec 16th 2019, 14:18 |
neon1024 |
I guess I might need to declare each type as it’s own table association? |
# |
Dec 16th 2019, 14:17 |
neon1024 |
This way, I can leverage an entity as a type of semi-value object |
# |
Dec 16th 2019, 14:17 |
neon1024 |
I am building a notification system and I had the thought that i could extend my Notification entity, to encompass different types of Notification. Can anyone envisage any drawbacks to this? I can only think of entity instantiation when doing a find |
# |
Dec 16th 2019, 14:12 |
neon1024 |
@maymeow It’s hard to give a template for a sidebar. I would just recommend an element in `/src/Template/Element` with `<div id="sidebar"><!-- My Content --></div>` |
# |
Dec 16th 2019, 14:02 |
damiano |
wow very fast! |
# |
Dec 16th 2019, 14:02 |
damiano |
whhhhhhat? cakephp 4 has been released? :) |
# |
Dec 16th 2019, 14:01 |
damiano |
ok no problem |
# |
Dec 16th 2019, 14:01 |
damiano |
@challgren yeah my mistake... i baked that controller and then i changed the name... the default actions have queries inside |
# |
Dec 16th 2019, 13:16 |
maymeow |
Hi. need good sidebar template for my admin section. now im using buttons instead of it. Any ideas? |
# |
Dec 16th 2019, 12:37 |
neon1024 |
Yes, he might be active on Twitter |
# |
Dec 16th 2019, 12:28 |
challgren |
bcrowe? |
# |
Dec 16th 2019, 12:26 |
neon1024 |
Sorry did you try a message on his Twitter? |
# |
Dec 16th 2019, 12:21 |
val |
`Cake\Validation\Validator<ValidationSet>` - what about that? |
# |
Dec 16th 2019, 12:20 |
javier.villanueva |
There are a tinyauth plugin without authcomponent ? lol :_) _( |
# |
Dec 16th 2019, 12:17 |
challgren |
Damm ok, I have a PR thats waiting and his github activity has been silent since middle of the year :( |
# |
Dec 16th 2019, 12:15 |
neon1024 |
I find those errors hard to understand from PHP Stan. @admad recommended trying Psalm out, but I didn’t get too far with that yet |
# |
Dec 16th 2019, 12:13 |
neon1024 |
Perhaps array if you mean the rules as they’re stored as an array internally I think |
# |
Dec 16th 2019, 12:13 |
neon1024 |
Unless you’re using your own Validator class I guess |
# |
Dec 16th 2019, 12:13 |
val |
`Cake\Validation\Validator<array>` or `Cake\Validation\Validator<Validator>` ? |
# |
Dec 16th 2019, 12:12 |
neon1024 |
I think it’s just that, without the Foo personally, https://github.com/cakephp/cakephp/blob/master/src/Validation/Validator.php |
# |
Dec 16th 2019, 12:12 |
val |
Hi, I start getting the error above after updating to the recent phpstan version. What would be the correct Foo value? |
# |
Dec 16th 2019, 12:11 |
neon1024 |
I haven’t spoken to him since we had beers in NYC cakefest @challgren |
# |
Dec 16th 2019, 12:11 |
val |
> Method App\Model\Table\MyTable::validationDefault() return type > has no value type specified in iterable type Cake\Validation\Validator. > Consider adding something like > Cake\Validation\Validator<Foo> to the PHPDoc. |
# |
Dec 16th 2019, 12:04 |
challgren |
Is @bcrowe still doing cake dev? |
# |
Dec 16th 2019, 11:44 |
slackebot |
!awesome |
# |
Dec 16th 2019, 11:44 |
slackebot |
Command sent from Slack by neon1024: |