Skip to content

Commit 8d96f84

Browse files
committed
psalm info issues are fixed
1 parent c0d5bd7 commit 8d96f84

File tree

11 files changed

+14
-13
lines changed

11 files changed

+14
-13
lines changed

src/Neo4jRequestFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Psr\Http\Message\RequestInterface;
99
use Psr\Http\Message\StreamFactoryInterface;
1010

11-
class Neo4jRequestFactory
11+
final class Neo4jRequestFactory
1212
{
1313
public function __construct(
1414
private RequestFactoryInterface $psr17Factory,

src/OGM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Neo4j\QueryAPI\Objects\Path;
99
use InvalidArgumentException;
1010

11-
class OGM
11+
final class OGM
1212
{
1313
/**
1414
* @param array<array-key, mixed> $data

src/Objects/Authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Neo4j\QueryAPI\Authentication\BearerAuthentication;
88
use Neo4j\QueryAPI\Authentication\NoAuth;
99

10-
class Authentication
10+
final class Authentication
1111
{
1212
public static function basic(string $username, string $password): AuthenticateInterface
1313
{

src/Objects/Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Represents a path in a Neo4j graph, consisting of nodes and relationships.
77
*/
88

9-
class Path
9+
final class Path
1010
{
1111
/**
1212
* @var Node[] Array of nodes in the path.

src/Objects/Person.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @psalm-suppress UnusedClass
77
* Represents a Person node in the Neo4j graph.
88
*/
9-
class Person extends Node
9+
final class Person extends Node
1010
{
1111
/**
1212
* Person constructor.

src/Objects/Point.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Represents a point with x, y, z coordinates, and SRID (Spatial Reference System Identifier).
77
*/
8-
class Point
8+
final class Point
99
{
1010
/**
1111
* @param float $x The x coordinate of the point.

src/Objects/ProfiledQueryPlanArguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Neo4j\QueryAPI\Objects;
44

5-
class ProfiledQueryPlanArguments
5+
final class ProfiledQueryPlanArguments
66
{
77
public function __construct(
88
public readonly ?int $globalMemory = null,

src/Objects/Relationship.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Represents a relationship in a Neo4j graph, with a type and associated properties.
77
*/
88

9-
class Relationship
9+
final class Relationship
1010
{
1111
/**
1212
* @var string The type of the relationship (e.g., "FRIENDS_WITH", "WORKS_FOR").

src/Objects/ResultCounters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Neo4j\QueryAPI\Objects;
44

5-
class ResultCounters
5+
final class ResultCounters
66
{
77
public function __construct(
88
private readonly bool $containsUpdates = false,

src/Results/ResultSet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @template TValue
1616
* @implements IteratorAggregate<int, ResultRow>
1717
*/
18-
class ResultSet implements IteratorAggregate, Countable
18+
final class ResultSet implements IteratorAggregate, Countable
1919
{
2020
/**
2121
* @param list<ResultRow> $rows

0 commit comments

Comments
 (0)