# |
May 7th 2019, 11:48 |
dereuromark |
"Marker interface for PHPUnit exceptions." |
# |
May 7th 2019, 11:48 |
dereuromark |
no, its phpunit crap |
# |
May 7th 2019, 11:48 |
neon1024 |
Perhaps that’s an avenue of investigation |
# |
May 7th 2019, 11:47 |
neon1024 |
It seems to be something in `IntegrationTestCase` |
# |
May 7th 2019, 11:47 |
dereuromark |
doesnt extend a real php one |
# |
May 7th 2019, 11:47 |
dereuromark |
interface Exception )> stub |
# |
May 7th 2019, 11:47 |
slackebot |
<neon1024> |
# |
May 7th 2019, 11:47 |
admad |
does `\PHPUnit\Exception` actually exist? |
# |
May 7th 2019, 11:46 |
neon1024 |
This is the method it’s upset with |
# |
May 7th 2019, 11:46 |
admad |
the the namespaces in the error should start with backslash |
# |
May 7th 2019, 11:45 |
neon1024 |
I’m in 3.7.7 for this project |
# |
May 7th 2019, 11:44 |
admad |
is this for 4.x? |
# |
May 7th 2019, 11:43 |
neon1024 |
:thinking_face: |
# |
May 7th 2019, 11:43 |
neon1024 |
So I’m not sure why PHPStan is so angry |
# |
May 7th 2019, 11:43 |
neon1024 |
BadRequestException > HttpException > \Cake\Core\Exception > RuntimeException > \Exception -> Throwable |
# |
May 7th 2019, 11:42 |
neon1024 |
But it does https://www.php.net/manual/en/class.exception.php |
# |
May 7th 2019, 11:41 |
neon1024 |
But `\Exception` doesn’t implement `ThrowableInterface` |
# |
May 7th 2019, 11:41 |
neon1024 |
Aren’t exceptions throwable? What is Throwable sub-type? |
# |
May 7th 2019, 11:40 |
neon1024 |
> PHPDoc tag @throws with type Cake\Http\Exception\BadRequestException|PHPUnit\Exception is not subtype of Throwable |
# |
May 7th 2019, 10:23 |
neon1024 |
Thanks @steinkel |
# |
May 7th 2019, 09:47 |
steinkel |
`$query->newExpr()->or_([...])` |
# |
May 7th 2019, 09:11 |
neon1024 |
Do we have a way to do OR queries using the ORM instead of array `->where(['OR' => $orArray])` yet? |
# |
May 7th 2019, 07:48 |
egalles |
hi @neon1024 |
# |
May 7th 2019, 07:48 |
egalles |
@cburch> https://stackoverflow.com/questions/33721886/ldap-authentication-with-cakephp-3-x |
# |
May 7th 2019, 07:46 |
neon1024 |
Morning all :wave: |
# |
May 7th 2019, 07:36 |
hmic |
it's not so bad, life on vpn... |
# |
May 7th 2019, 07:35 |
admad |
hmic: good to see you be able to peek out of the great chinese firewall :) |
# |
May 7th 2019, 07:33 |
hmic |
admad: I'm still alive. Just busy and kind of disconnected in china ;-) |
# |
May 7th 2019, 06:40 |
egalles |
Hi everybody, I would like to know if anyone knows any app for cakephp a service for sms and cakephp to certify that a mobile phone exists for an specific user in database |
# |
May 7th 2019, 06:29 |
ondrej.nedvidek |
Hi there, sorry was away already. The idea is to have system where is easier to add new attributes of shop products without needs to touch the database. Having them in same table gives me also option to do faster queries when filtering products than have standalone table for each attribute and multiple joins. |
# |
May 7th 2019, 03:56 |
admad |
hmic! |
# |
May 7th 2019, 03:34 |
hmic |
you need to set the value to 'force', if debug is disabled though! |
# |
May 7th 2019, 03:33 |
hmic |
drailanjohn.gss: just check what i told you to. cake does that itself, automagically. it adds a timestamp of the file, so the browser can still cache it, if it's unchanged on the server - much smarter solution :-p |
# |
May 7th 2019, 02:23 |
drailanjohn.gss |
thanks but It’s not working on my end, but I tried to put a random string on my js file, is it ok? ``` $this->Html->script('whiteboard/whiteboard.js?v'. $randString .' ', ['block' => TRUE]); ``` |
# |
May 7th 2019, 02:00 |
hmic |
drailanjohn.gss: check Asset.timestamp |
# |
May 7th 2019, 01:42 |
drailanjohn.gss |
hi guys how prevent caching of javascript files in cake php? |
# |
May 6th 2019, 20:05 |
phantomwatson |
Oh, cool. Thanks! |
# |
May 6th 2019, 20:05 |
admad |
@phantomwatson |
# |
May 6th 2019, 19:37 |
phantomwatson |
Using CakePHP 3.7.7 |
# |
May 6th 2019, 19:35 |
slackebot |
$this->assertRedirect('/api/docs/v1'); } ``` Anyone have any insight? It looks like a core bug, but I'm having a hard time believing that `assertRedirect()` is broken and I'm the only one who's ever noticed. |
# |
May 6th 2019, 19:35 |
phantomwatson |
I'm getting this error: ``` TypeError : Argument 1 passed to Cake\TestSuite\Constraint\Response\HeaderSet::__construct() must be an instance of Cake\Http\Response, instance of Zend\Diactoros\Response\RedirectResponse given, called in C:\app\vendor\cakephp\cakephp\src\TestSuite\IntegrationTestTrait.php on line 843 ``` when I run this integration test: ``` public function testDocsRedirect() { $this->get('/api/docs'); |