Skip to content

Commit

Permalink
more psalm like things
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed Mar 19, 2022
1 parent c52f0db commit 3466cba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 0 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
Expand Down Expand Up @@ -32,7 +31,6 @@
<MissingReturnType errorLevel="info" />
<MissingPropertyType errorLevel="info" />
<InvalidDocblock errorLevel="info" />
<MisplacedRequiredParam errorLevel="info" />

<PropertyNotSetInConstructor errorLevel="info" />
<MissingConstructor errorLevel="info" />
Expand Down
17 changes: 16 additions & 1 deletion src/Nmap/Port.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,34 @@ class Port

const STATE_CLOSED = 'closed';

/**
* @var int
*/
private $number;

/**
* @var string
*/
private $protocol;

/**
* @var string
*/
private $state;

/**
* @var Service
*/
private $service;

/**
* @var array
*/
private $scripts = [];

public function __construct(int $number, string $protocol, string $state, Service $service)
{
$this->number = (int) $number;
$this->number = $number;
$this->protocol = $protocol;
$this->state = $state;
$this->service = $service;
Expand Down

0 comments on commit 3466cba

Please sign in to comment.