Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Karel Wintersky committed Jun 28, 2024
1 parent 0a97ba5 commit 02a9c66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"psr-4": {
"AJUR\\Toolkit\\JsonLd\\": "src/"
}
},
"replace": {
"torann/json-ld": "*"
}
}
2 changes: 1 addition & 1 deletion src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Context
{
public const DEFAULT_JSON_ENCODE_FLAGS = JSON_HEX_APOS | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES;
public const DEFAULT_JSON_ENCODE_FLAGS = JSON_HEX_APOS | JSON_UNESCAPED_UNICODE /*| JSON_UNESCAPED_SLASHES*/;

public const CONTEXT_TYPES_NAMESPACE = '\\AJUR\Toolkit\\JsonLd\\ContextTypes\\';
/**
Expand Down
6 changes: 3 additions & 3 deletions src/ContextTypes/AbstractContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ protected function setType(string $type)
*
* @return array
*/
protected function getNestedContext(string $class, array $attributes = null)
protected function getNestedContext(string $class, $attributes = null)
{
// Must be an array
if (\is_array($attributes) === false) {
Expand Down Expand Up @@ -284,11 +284,11 @@ protected function getMutatorName($value)
* Get property value from attributes.
*
* @param array $template
* @param array $props
* @param $props
*
* @return mixed
*/
protected function mapProperty(array $template = [], $props = [])
protected function mapProperty(array $template, $props)
{
// No values set
if (\is_array($props) === false) {
Expand Down

0 comments on commit 02a9c66

Please sign in to comment.