8 Commits

Author SHA1 Message Date
Danny van der Sluijs
23c8551197
Add return types to test suite (#748)
* refactor: Add return types in the test suite

* docs: Add changelog entry
2024-08-30 15:09:12 +02:00
Danny van der Sluijs
cddbef1378
refactor: Replace traditional syntax array with short syntax array (#747)
* refactor: Replace traditional syntax array with short syntax array

* docs: Update changelog
2024-08-27 09:30:55 +02:00
Danny van der Sluijs
2eb0deffe8
Extend pipeline for newer versions php (#746)
* ci: Add PHP 8.0 and greater to build matrix

* ci: Remove PHP 5.3 - 7.1 from workflows

* build: Require minimum PHP 7.2

* build: Upgrade to PHPUnit 8.5

* refactor: Add now required void return types for setup() methods

* build: Include phpspec/prophecy dependency

* refactor: Replace setExpectedException with expectException/expectExceptionMessage

* refactor: Replace @expectedException annotation for expectException method

* refactor: Replace assertInternalType for assertIsArray

* refactor: Replace getMock for createMock

* test: Improve test assertions

* fix: Solve return type issues with Objectiterator (port of #682)

See https://github.com/jsonrainbow/json-schema/pull/682

* build: Update icecave/parity to ^3.0 as 1.0 uses deprecated each() method

* style: Correct code style issues

* fix: Fix deprecation notices found from GHA workflow run

See https://github.com/jsonrainbow/json-schema/actions/runs/10216569969/job/28268331091

* fix: Add fallback to empty string when null value is passed in UriResolver::parse

* fix: Port #717: Fixes for implicit nullability deprecation

See https://github.com/jsonrainbow/json-schema/pull/717

* ci: Avoid GHA run on each push and pull request; Include PHP 8.4 in matrix

* ci(Drop-PHP-8.4-from-matrix): This PR adds phpspec/prophecy as an explicit dependency which is restrictive and doesnt support upcoming PHP versions

* refactor: Replace ternary variable with explicit cast to string
2024-08-27 09:00:10 +02:00
David Porter
7d7f43a1b2
Merge pull request #476 from localheinz/fix/deprecate
Fix: Mark check() and coerce() as deprecated
2017-12-31 17:44:44 -06:00
Andreas Möller
284f3e53aa
Fix: Mark check() and coerce() as deprecated 2017-12-31 13:07:23 +01:00
Andreas Möller
7a4bc95f8c
Fix: Run 'composer style-fix' 2017-12-30 19:21:48 +01:00
Gabriel Caruso
048fce165e Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-11 22:40:55 -02:00
Erayd
5bc0d34d0b Allow the schema to be an associative array (#389)
* Allow the schema to be an associative array

Implements #388.

* Use json_decode(json_encode()) for array -> object cast

* Skip exception check on PHP versions < 5.5.0

* Skip test on HHVM, as it's happy to encode resources
2017-03-21 08:22:25 -05:00