Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 200587 - Highlighting the code that uses non existent function
Highlighting the code that uses non existent function
Status: NEW
Product: php
Classification: Unclassified
Component: Editor
7.1
All All
: P3 with 3 votes (vote)
: TBD
Assigned To: Ondrej Brejla
issues@php
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-02 08:16 UTC by mcfedr
Modified: 2017-03-17 11:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mcfedr 2011-08-02 08:16:14 UTC
The PHP editor doesn't highlight usage of undefined functions and parameters.

Because php is have the possibility to add parameters on the fly this should just be a warning.
Also functions can be dynamic via the __call function, but on classes without __call a warning can be displayed.

Related to this topic

http://forums.netbeans.org/topic41067.html
Comment 1 Ondrej Brejla 2012-04-24 15:27:03 UTC
Maybe some hint could be added.
Comment 2 liviuoprisan 2017-03-17 11:25:33 UTC
this would be very useful; you can forget to create a method and find out only 3 months later, in production, when your code crashes at runtime; 
this makes php a terrible language compared to java and c#
since php introduced "declare(strict_types=1)" and made it possible to remove the silent type conversion, which is another nightmare in php, this is the biggest source of bugs


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo