# |
Jun 21st 2018, 18:14 |
itmpls |
thought it was just value |
# |
Jun 21st 2018, 18:14 |
itmpls |
that returns both the key and value? |
# |
Jun 21st 2018, 18:13 |
saeideng |
use `last()` |
# |
Jun 21st 2018, 18:08 |
itmpls |
i think @josbeir is exhibiting premature optimization |
# |
Jun 21st 2018, 18:02 |
saeideng |
why not `toArray() ` ? |
# |
Jun 21st 2018, 16:37 |
josbeir |
is there a way to get the last key of a Collection (without doing a toArray() and using the php way) |
# |
Jun 21st 2018, 15:49 |
flavius |
https://github.com/cakephp/chronos/issues/173 |
# |
Jun 21st 2018, 15:39 |
lorenzo |
Can you please open a ticket in the cake repo? |
# |
Jun 21st 2018, 15:28 |
flavius |
master is still passing because nothing was commited since the chronos update :P |
# |
Jun 21st 2018, 15:27 |
flavius |
with the date tests |
# |
Jun 21st 2018, 15:27 |
flavius |
looks like cakephp tests are also failing since the update -- https://travis-ci.org/cakephp/cakephp/jobs/394841488 |
# |
Jun 21st 2018, 15:25 |
josbeir |
is mod_php still used these days? :S |
# |
Jun 21st 2018, 15:25 |
josbeir |
(as it should) |
# |
Jun 21st 2018, 15:25 |
josbeir |
or fpm log if you use fpm :P |
# |
Jun 21st 2018, 15:25 |
itmpls |
or wherever your distro has it |
# |
Jun 21st 2018, 15:25 |
clementcrown |
ok, let me check |
# |
Jun 21st 2018, 15:24 |
itmpls |
in /var/log/apache2/error.log |
# |
Jun 21st 2018, 15:24 |
josbeir |
@flavius not sure, that if you change the date in one testnow object that it will be persistated in following calls to that method |
# |
Jun 21st 2018, 15:24 |
itmpls |
besides site one |
# |
Jun 21st 2018, 15:24 |
itmpls |
did you check apache error log? |
# |
Jun 21st 2018, 15:24 |
clementcrown |
nothing in the error log @itmpls |
# |
Jun 21st 2018, 15:24 |
itmpls |
@clementcrown |
# |
Jun 21st 2018, 15:23 |
itmpls |
did you check the error log? |
# |
Jun 21st 2018, 15:23 |
clementcrown |
please why is my cakephp application showing like this? http://www.wacscoac.org/newportal/ |
# |
Jun 21st 2018, 15:23 |
flavius |
what does that even mean? |
# |
Jun 21st 2018, 15:23 |
josbeir |
=> https://github.com/cakephp/chronos/releases |
# |
Jun 21st 2018, 15:22 |
josbeir |
"Test 'now' is shared across all classes. Changing 'now' in one class will update 'now' in all other classes." |
# |
Jun 21st 2018, 15:22 |
flavius |
`Time::setTestNow(new Time($delay));` doesnt work anymore |
# |
Jun 21st 2018, 15:22 |
flavius |
something changed with regards to `setTestNow` |
# |
Jun 21st 2018, 15:21 |
josbeir |
also @itmpls psr is just a standard, not a requirement |
# |
Jun 21st 2018, 15:21 |
itmpls |
anyone think there will be an upset at the world cup? |
# |
Jun 21st 2018, 15:20 |
josbeir |
auwch, i saw the update this morning, tests checked out for me lucilly |
# |
Jun 21st 2018, 15:19 |
flavius |
cakephp/chronos 1.2.0 breaks some of my tests, sigh |
# |
Jun 21st 2018, 15:19 |
itmpls |
better late than never though |
# |
Jun 21st 2018, 15:18 |
itmpls |
7 should abeen 5 |
# |
Jun 21st 2018, 15:18 |
itmpls |
and the delimiter is still kinda stupid, but got use to it |
# |
Jun 21st 2018, 15:18 |
itmpls |
php was so late to the namespace game |
# |
Jun 21st 2018, 15:18 |
josbeir |
@flavius well.. thats another debate but for new developers it should be forced :) |
# |
Jun 21st 2018, 15:18 |
itmpls |
and later php finally came out with psr etc |
# |
Jun 21st 2018, 15:17 |
josbeir |
it sometimes makes code harder to read |
# |
Jun 21st 2018, 15:17 |
flavius |
forcing isnt superior :P |