Use lowercase constants for false, true, null in NetBeans

Is there a way to set them in automatic lowercase completion code? Automatically they appear in UPPERCASE, I know that the constants are defined in UPPERCASE, but for them I prefer lowercase letters.

+3
source share
3 answers

I found the following in C: \ Program Files \ NetBeans 6.9.1 \ php \ phpstubs \ phpruntime \ Core.php

define ('LOG_PERROR', 32);
define ('TRUE', true);
define ('FALSE', false);
define ('NULL', null);
define ('ZEND_THREAD_SAFE', false);
define ('ZEND_DEBUG_BUILD', false);

to

define ('LOG_PERROR', 32);
//define ('TRUE', true);
//define ('FALSE', false);
//define ('NULL', null);
define ('ZEND_THREAD_SAFE', false);
define ('ZEND_DEBUG_BUILD', false);

Comment on some “definition” and remove the netbeans cache:% USERS% .netbeans \ 6.9 \ var \ cache \

+10
source

That's what I did when I wanted my car to be PSR-2 .

NetBeans 7.3 Windows 7.

: % USERPROFILE%\AppData\Roaming\NetBeans\7.3\phpstubs\phpruntime\core.php

:

define ('TRUE', true);
define ('FALSE', false);
define ('NULL', null);

, 3 :

// define ('TRUE', true);
// define ('FALSE', false);
// define ('NULL', null);

, , :

define ('TRUE', true);
define ('FALSE', false);
define ('NULL', null);

NetBeans, .

+2

PSR-2 true, false null NetBeans 7.x/8.x Ubuntu : /home/user/netbeans-8.0/php/phpstubs/phpruntime/Core.php ( Windows : C:\Program Files\NetBeans 8.0\php\phpstubs\phpruntime\Core.php) :

define ('TRUE', true);
define ('FALSE', false);
define ('NULL', null);

:

define ('TRUE', true);
define ('FALSE', false);
define ('NULL', null);

NetBeans, . , .

+2

Source: https://habr.com/ru/post/1760699/


All Articles