Skip to content

Commit

Permalink
remove not needed parser type
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Sep 10, 2024
1 parent 556fd90 commit 56a00d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,19 @@
class Parser
{
private SecurityManager $securityManager;
private ?int $parserType;
private ParserFactory $parserFactory;

public function __construct(SecurityManager $securityManager = null, ?int $parserType = null)
public function __construct(?SecurityManager $securityManager = null)
{
$this->securityManager = $securityManager ?? new SecurityManager();
$this->parserType = $parserType;
$this->parserFactory = new ParserFactory();
}

/**
* Parses untrusted PHP code and returns a secure version which only
* contains safe calls. Throws an exception in case the code contains
* untrusted calls
*
* @throws SecurityException
*
* @throws ParseException
* @psalm-suppress RedundantCondition
*/
Expand Down

0 comments on commit 56a00d5

Please sign in to comment.