pdt icon indicating copy to clipboard operation
pdt copied to clipboard

Correct syntax for require in refactoring help file.

Open agmckee opened this issue 2 years ago • 1 comments

Fixes #139.

As noted in #139 the current documentation is wrong require(RenFile1.php); will error as it will be evaluated as two undefined constants (RenFile1 and php) and the concatenation operator (.) which will cause a warning about each undefined constant and it will then try to concatenate these undefined constants. It will then try to require the file RenFile1php which will raise a fatal error (because using require, rather than include). Definitely more than unhelpful if the IDE help files don't use correct syntax for the examples!

require in PHP is a language level feature not a function, but I didn't update the syntax to the more usual require "file.php" because the function-like syntax is also acceptable.

agmckee avatar Sep 03 '22 14:09 agmckee

The Tycho build check always seems to error, what's the point of such checks if they're this unreliable?

agmckee avatar Sep 03 '22 15:09 agmckee