This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270318 - New hint for declaring strict types
Summary: New hint for declaring strict types
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-07 01:13 UTC by junichi11
Modified: 2017-04-10 02:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2017-04-07 01:13:26 UTC
If PHP files have no "declare(strict_types=1)", suggest to add it.(Ristrict to PHP7 or newer.)

e.g. 

before:
<?php // Suggest that when the caret on this line

after:
<?php
declare(strict_types=1);

If PHP file have inline HTMLs, add <?php declare(strict_types=1) ?> on the first line.

Thanks.
Comment 1 junichi11 2017-04-09 03:28:36 UTC
Done.

http://hg.netbeans.org/web-main/rev/4667c89b7fb0

Thanks.
Comment 2 Quality Engineering 2017-04-10 02:54:14 UTC
Integrated into 'main-silver', will be available in build *201704100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4667c89b7fb0
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #270318 - New hint for declaring strict types