[CLEANUP] ignore php warning if no page is selected via the page tree#557
[CLEANUP] ignore php warning if no page is selected via the page tree#557dontWatchMeCode wants to merge 1 commit intoextcode:mainfrom
Conversation
|
@dontWatchMeCode maybe I missed something so therefore: Why did you add a |
|
Ignores the warning thrown if the array key is not set:
Since the value is set to PID 1 and the warning isn't needed. |
|
Interesting. Thanks for the input. It's not me to decide whether to go this way but: I cannot reproduce this error at all. |
|
Wait... I really need to setup a extra TYPO3 for the EXT:cart stuff... |
|
I can imagine that @extcode prefers something like $pageId = isset($this->request->getQueryParams()['id']) ? (int)$this->request->getQueryParams()['id'] : 1;to not block warning that we are not expecting at the moment. |
|
Thanks, i'm using PHP 8.1 with t3 v12 and error reporting in dev mode.
|
|
Yes, I meant with "wait..." that I had a wrong configuration. Now I can reproduce the error. But it's solved with the code snippet that I wrote above. |
reproduce:
Best regards.