Skip to content

DEV-123965 general improvements#98

Open
tomerparizer wants to merge 12 commits into
masterfrom
DEV-123965_general-improvements
Open

DEV-123965 general improvements#98
tomerparizer wants to merge 12 commits into
masterfrom
DEV-123965_general-improvements

Conversation

@tomerparizer

Copy link
Copy Markdown
Contributor

Summery

Boost the repo with more standardization

  1. Update readme
  2. added code analysis using PHPStan
  3. added code linter using PHP Code Sniffer

tomerparizer and others added 7 commits June 15, 2026 16:25
Introduce a coding-standard and static-analysis stack for the SDK:

- phpcs (PSR-12) + PHPCompatibility targeting PHP 5.5+ via phpcs.xml.dist
- phpstan level 5 with a baseline for pre-existing findings
- composer scripts (lint/fix/analyse/check) and a CI workflow

Fix the PHP 5.5 incompatibilities the tooling surfaced in Notification.php:
replace the null-coalescing operators (PHP 7.0) and provide hash_equals
(PHP 5.6) via symfony/polyfill-php56, plus a self-contained fallback
polyfill loaded by the bundled autoloader for non-Composer consumers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop .github/workflows/ci.yml; CI is handled elsewhere.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tomerparizer tomerparizer requested a review from a team as a code owner June 16, 2026 15:10
@DavidRibeiroRiskified DavidRibeiroRiskified changed the title Dev 123965 general improvements DEV-123965 general improvements Jun 17, 2026
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread phpcs.xml.dist Outdated
Comment thread phpstan-baseline.neon Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: this file gets deleted in #98

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.. i added the baseline and removed it in the next one
the idea is to merge _fixes into this branch
and then merge both
i just wanted to keep them separated since the linter touched all the files

Comment thread README.md
=================
# Riskified PHP SDK

version: 1.12.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the v number in Readme

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we did.. we just moved it a little (to line 7)

Comment thread README.md Outdated
* DEV-123965 - fix composer analyze

* DEV-123965 - fix composer lint

* DEV-123965 - CR fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants