note 128110 added to language.constants.syntax
| From: | woodlandcodersatgmaildotcom at main dot php dot net | Date: | Fri, 13 Jan 2023 18:15:24 +0000 |
| Subject: | note 128110 added to language.constants.syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220064@lists.php.net to get a copy of this message | ||
In IntelliJ IDEA and PhpStorm I setup a few constants in a seperate file. At the time of my writing
this if you use:
define('HOST', 'localhost');
IntelliJ IDEA will flag it with a grey squiggle underline and encourages the use of the const key
instead:
const HOST = 'localhost';
I went with the later.
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 67.161.153.230)
----
Manual Page -- https://php.net/manual/en/language.constants.syntax.php
Edit -- https://main.php.net/note/edit/128110
Del: integrated -- https://main.php.net/note/delete/128110/integrated
Del: useless -- https://main.php.net/note/delete/128110/useless
Del: bad code -- https://main.php.net/note/delete/128110/bad+code
Del: spam -- https://main.php.net/note/delete/128110/spam
Del: non-english -- https://main.php.net/note/delete/128110/non-english
Del: in docs -- https://main.php.net/note/delete/128110/in+docs
Del: other reasons-- https://main.php.net/note/delete/128110
Reject -- https://main.php.net/note/reject/128110
Search -- https://main.php.net/manage/user-notes.php