-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from andrewnicols/variableCommentOnConstructor
Properties should not be tested for regular constructors (Fixes #142)
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../Sniffs/Commenting/fixtures/VariableComment/constructor_with_mixed_property_promotion.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace MoodleHQ\MoodleCS\moodle\Tests\Sniffs\PHPUnit; | ||
|
||
class constructor_with_mixed_property_promotion { | ||
/** | ||
* Constructor | ||
* | ||
* @param string $serverurl a Moodle URL | ||
* @param string $token the token used to do the web service call | ||
* @param string $example | ||
* @param string $example2 | ||
* @param string $example3 | ||
*/ | ||
public function __construct( | ||
$serverurl, | ||
string $token, | ||
/** @var string The example */ | ||
protected string $example, | ||
string $example2, | ||
protected string $example3 | ||
) { | ||
} | ||
} |