Skip to content

Commit 94f20b6

Browse files
committed
chore: minor updates
1 parent d3770c8 commit 94f20b6

5 files changed

Lines changed: 42 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For detailed information on the Sierra API, visit the [docs](https://techdocs.ii
2222
## Installation
2323

2424
```bash
25-
composer require vincentauger/sierra-sdk
25+
composer require vincentauger/sierra-php-sdk
2626
```
2727

2828
## Usage

SECURITY.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
We release patches for security vulnerabilities. Which versions are eligible for receiving such patches depends on the CVSS v3.0 Rating:
6+
7+
| Version | Supported |
8+
| ------- | ------------------ |
9+
| 1.x | :white_check_mark: |
10+
11+
## Reporting a Vulnerability
12+
13+
If you discover a security vulnerability within this package, please send an email to Vincent Auger at vincent.auger@gmail.com. All security vulnerabilities will be promptly addressed.
14+
15+
Please include the following information in your report:
16+
17+
- Type of issue (e.g., buffer overflow, SQL injection, cross-site scripting, etc.)
18+
- Full paths of source file(s) related to the manifestation of the issue
19+
- The location of the affected source code (tag/branch/commit or direct URL)
20+
- Any special configuration required to reproduce the issue
21+
- Step-by-step instructions to reproduce the issue
22+
- Proof-of-concept or exploit code (if possible)
23+
- Impact of the issue, including how an attacker might exploit the issue
24+
25+
We will respond to your report within 48 hours and work with you to understand and address the issue.
26+
27+
## Disclosure Policy
28+
29+
When we receive a security bug report, we will:
30+
31+
1. Confirm the problem and determine the affected versions.
32+
2. Audit code to find any potential similar problems.
33+
3. Prepare fixes for all supported releases.
34+
4. Release new security fix versions as soon as possible.
35+
36+
Thank you for helping keep Sierra PHP SDK and its users safe!

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@
2323
typeDeclarations: true,
2424
privatization: true,
2525
earlyReturn: true,
26-
strictBooleans: true,
2726
)
2827
->withPhpSets();

src/Data/BibObject.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ public static function fromArray(array $data): self
8282
catalogDate: $data['catalogDate'] ?? null,
8383
country: isset($data['country']) ? Country::fromArray($data['country']) : null,
8484
orders: isset($data['orders']) ? array_map(
85-
fn (array $order): OrderInfo => OrderInfo::fromArray($order),
85+
OrderInfo::fromArray(...),
8686
$data['orders']
8787
) : null,
8888
normTitle: $data['normTitle'] ?? null,
8989
normAuthor: $data['normAuthor'] ?? null,
9090
locations: isset($data['locations']) ? array_map(
91-
fn (array $location): Location => Location::fromArray($location),
91+
Location::fromArray(...),
9292
$data['locations']
9393
) : null,
9494
holdCount: $data['holdCount'] ?? null,
@@ -97,11 +97,11 @@ public static function fromArray(array $data): self
9797
volumes: $data['volumes'] ?? null,
9898
items: $data['items'] ?? null,
9999
fixedFields: isset($data['fixedFields']) ? array_map(
100-
fn (array $fixedField): FixedField => FixedField::fromArray($fixedField),
100+
FixedField::fromArray(...),
101101
$data['fixedFields']
102102
) : null,
103103
varFields: isset($data['varFields']) ? array_map(
104-
fn (array $varField): VarField => VarField::fromArray($varField),
104+
VarField::fromArray(...),
105105
$data['varFields']
106106
) : null,
107107
);

src/Data/VarField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function fromArray(array $data): self
3535
ind2: $data['ind2'] ?? null,
3636
content: $data['content'] ?? null,
3737
subfields: isset($data['subfields']) ? array_map(
38-
fn (array $subfield): \VincentAuger\SierraSdk\Data\Subfield => Subfield::fromArray($subfield),
38+
Subfield::fromArray(...),
3939
$data['subfields']
4040
) : null,
4141
);

0 commit comments

Comments
 (0)