Skip to content

Docs: Use require without brackets#2337

Merged
MasterOdin merged 1 commit intocakephp:0.xfrom
piotr-cz:docs/require-statement
Dec 20, 2024
Merged

Docs: Use require without brackets#2337
MasterOdin merged 1 commit intocakephp:0.xfrom
piotr-cz:docs/require-statement

Conversation

@piotr-cz
Copy link
Contributor

@piotr-cz piotr-cz commented Dec 17, 2024

Because brackets with require is not necessary and implies it's a function, while it's a statement.

In phinx code, require is used without brackets:

$autoloader = require __DIR__ . '/../src/composer_autoloader.php';

$app = require __DIR__ . '/phinx.php';

@piotr-cz piotr-cz changed the title Docs: Use require without brackets Docs: Use require without brackets Dec 17, 2024
@MasterOdin MasterOdin merged commit 5bad109 into cakephp:0.x Dec 20, 2024
12 checks passed
@piotr-cz piotr-cz deleted the docs/require-statement branch December 22, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants