# |
Jan 2nd 2020, 18:56 |
brian.french |
it's catching about 95% of my annotations. the 5% are in my templates mainly, which just means I need to update the typehints in my controllers. thats awesome! |
# |
Jan 2nd 2020, 18:52 |
brian.french |
lol |
# |
Jan 2nd 2020, 18:52 |
ricksaccous |
that would be a pretty cool song though |
# |
Jan 2nd 2020, 18:52 |
ricksaccous |
just kidding i'm stopping htere |
# |
Jan 2nd 2020, 18:51 |
ricksaccous |
I'd say my experience was better than sublime, I'd like to thank you ONE LAST TIME |
# |
Jan 2nd 2020, 18:51 |
ricksaccous |
with your type hints I don't miss a line, over time you've treated me quite fine |
# |
Jan 2nd 2020, 18:50 |
ricksaccous |
please help me use my IDE, a very nice plugin created for FREE, FOR FREEE, FOR FREEE--EEE-EEEE |
# |
Jan 2nd 2020, 18:42 |
brian.french |
wow @dereuromark mark, it took me a little bit to setup, but the IdeHelper is awesome! |
# |
Jan 2nd 2020, 16:57 |
brian.french |
@dereuromark checking it out now, thank you sir! |
# |
Jan 2nd 2020, 16:54 |
dereuromark |
It also is able to introspect, autocomplete and more. |
# |
Jan 2nd 2020, 16:54 |
dereuromark |
This should mainly make you happy :) As your IDE will be so more smarter then and you can click through. |
# |
Jan 2nd 2020, 16:50 |
brian.french |
Your IDE Helper looks awesome, just reluctant to add yet another tool just to make testing tools happy, but i'll give it a try. |
# |
Jan 2nd 2020, 16:48 |
dereuromark |
This is not sth that should be done manually IMO. |
# |
Jan 2nd 2020, 16:44 |
brian.french |
So the @ mixin tag? that's what I was looking for. |
# |
Jan 2nd 2020, 16:43 |
brian.french |
Awesome, thanks! |
# |
Jan 2nd 2020, 16:42 |
dereuromark |
See e.g. https://github.com/dereuromark/cakephp-sandbox/blob/master/plugins/Sandbox/src/Model/Table/SandboxPostsTable.php - which was auto annotated using the recommended tool. |
# |
Jan 2nd 2020, 16:41 |
dereuromark |
jep |
# |
Jan 2nd 2020, 16:39 |
brian.french |
@dereuromark was that reply for me? |
# |
Jan 2nd 2020, 16:37 |
dereuromark |
I think it is the mixin one for this |
# |
Jan 2nd 2020, 16:37 |
dereuromark |
which then gets picked up by tooling |
# |
Jan 2nd 2020, 16:36 |
dereuromark |
Did you test what the IdeHelper adds for you in this case? afaik it auto adds the missing annoations needed. |
# |
Jan 2nd 2020, 16:32 |
brian.french |
What's te best way to get phpstan to recognize methods in behaviors within your table? |
# |
Jan 2nd 2020, 15:41 |
luizcmarin |
already fixed the branch :man-facepalming:... thanks you |
# |
Jan 2nd 2020, 15:09 |
slackebot |
<jotpe> |
# |
Jan 2nd 2020, 15:09 |
jotpe |
Hi! I have a User, which has a `address` and can has a `invoice_address`. I wanted a getter on the `invoice_address`, which returns the `invoice_address` if set, otherwise the `address`. Is there a better approach than renaming the method name? |
# |
Jan 2nd 2020, 15:04 |
pieceof |
cant remember the fix |
# |
Jan 2nd 2020, 15:03 |
pieceof |
i remember to see some message about csrf token but it was either expired session or pure picnic |
# |
Jan 2nd 2020, 14:57 |
alexdd55976 |
is there a way to deaktivate that? |
# |
Jan 2nd 2020, 14:44 |
alexdd55976 |
@pieceof nah.. did not help... actually nothing different happens |
# |
Jan 2nd 2020, 14:40 |
pieceof |
just maybe |
# |
Jan 2nd 2020, 14:38 |
scuadra |
Hello and happy new year! I have a question about using wkhtmltopdf with CakePDF. I have an html table with multiple rows (30-40) which not fits on one page and goes to pages 2 and 3. In those pages the table rows are tied to the top of the page without any margin and I can't find a way to change this. So my question is how to set some margin to the top of the pages? |
# |
Jan 2nd 2020, 14:37 |
alexdd55976 |
i did not specificly activate it.. so no idea how to disable it |
# |
Jan 2nd 2020, 14:36 |
alexdd55976 |
how can i get rid of the `Missing CSRF token body`message? |
# |
Jan 2nd 2020, 14:24 |
neothermic |
it was a very handy upgrade to the docblock for ClassRegistry::init in 2.x :) |
# |
Jan 2nd 2020, 14:22 |
dereuromark |
sure, if applicable |
# |
Jan 2nd 2020, 14:16 |
neothermic |
@dereuromark one thing that also helps is if you're returning something that at least has a base type, indicate so in the docblock rather than just object |
# |
Jan 2nd 2020, 13:58 |
dereuromark |
I wonder if php8 will have typehints in place, and also moves away from false and uses null as empty type... |
# |
Jan 2nd 2020, 13:57 |
dereuromark |
and wonder why you didnt notice this before |
# |
Jan 2nd 2020, 13:57 |
dereuromark |
I see :) Yeah, you will get this when trying to make phpstan level 5+ pass |
# |
Jan 2nd 2020, 13:56 |
tibor.hajos |
Sorry, I meant _return types_ by types. Let me rephrase that as "I never noticed the wrong return types" |
# |
Jan 2nd 2020, 13:38 |
dereuromark |
that is actually just unnecessary noise around the actual topic/bug. |