# |
May 7th 2019, 14:00 |
neon1024 |
`* @method int|bool|null main(...$args)` |
# |
May 7th 2019, 14:00 |
neon1024 |
It’s hinted instead |
# |
May 7th 2019, 14:00 |
neon1024 |
So why does the Shell class’ main method not exist? |
# |
May 7th 2019, 12:02 |
neon1024 |
Because getQuery() returns null anyway |
# |
May 7th 2019, 12:02 |
neon1024 |
Ah, because I’ve used a `??` where I didn’t need one |
# |
May 7th 2019, 12:00 |
neon1024 |
So like null !== null is false, which would be correct |
# |
May 7th 2019, 12:00 |
neon1024 |
This doesn’t fit in my brain |
# |
May 7th 2019, 12:00 |
neon1024 |
> Strict comparison using !== between null and null will always evaluate to false. |
# |
May 7th 2019, 12:00 |
neon1024 |
I know this might be a silly question |
# |
May 7th 2019, 11:52 |
neon1024 |
Just add an ignore for the Stripe magic methods and I’m passing :) |
# |
May 7th 2019, 11:51 |
neon1024 |
I’ll remove that then, not sure why it’s there. I guess I copied my PHPCS composer command perhaps |
# |
May 7th 2019, 11:50 |
admad |
yeah doing static analysis or strict typing for tests is fool's errand |
# |
May 7th 2019, 11:49 |
dereuromark |
tests dir usually isnt static analyzed for many reasons, that is one. |
# |
May 7th 2019, 11:49 |
dereuromark |
just look into the source code, its all there, I just did the same. |
# |
May 7th 2019, 11:48 |
admad |
right, it's a "made up" exception which doesn't extend any core exception |
# |
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... |