Skip to content

Commit

Permalink
Types on lineitem create
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Nov 14, 2024
1 parent 973a04c commit 0af4000
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react/dns" : ">=1.12.0",
"react/socket" : ">=1.15.0",

"tsugi/lib": "dev-master#0e76f6a404c64ffa7f907e41cb1c21a3f680672a",
"tsugi/lib": "dev-master#2b51276a82adda0833005908b3c3ad25b2792353",
"koseu/lib": "dev-master#b9a31b7875108196dbdf284e685b813d424f2def"
},
"config": {
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7708,12 +7708,12 @@
"source": {
"type": "git",
"url": "https://github.com/tsugiproject/tsugi-php.git",
"reference": "0e76f6a404c64ffa7f907e41cb1c21a3f680672a"
"reference": "2b51276a82adda0833005908b3c3ad25b2792353"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/0e76f6a404c64ffa7f907e41cb1c21a3f680672a",
"reference": "0e76f6a404c64ffa7f907e41cb1c21a3f680672a",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/2b51276a82adda0833005908b3c3ad25b2792353",
"reference": "2b51276a82adda0833005908b3c3ad25b2792353",
"shasum": ""
},
"require": {
Expand All @@ -7727,7 +7727,7 @@
"phpunit/php-timer": "v5.0.3",
"phpunit/phpunit": "9.*"
},
"time": "2024-09-27T13:28:18+00:00",
"time": "2024-11-14T01:32:04+00:00",
"default-branch": true,
"type": "library",
"installation-source": "dist",
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '7996b5caf86fd9758bae8bedc4a59647a3e51fe7',
'reference' => '973a04c8b98dbe2ad51b4dc60cbd1b00dca356a8',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '7996b5caf86fd9758bae8bedc4a59647a3e51fe7',
'reference' => '973a04c8b98dbe2ad51b4dc60cbd1b00dca356a8',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -1078,7 +1078,7 @@
'tsugi/lib' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '0e76f6a404c64ffa7f907e41cb1c21a3f680672a',
'reference' => '2b51276a82adda0833005908b3c3ad25b2792353',
'type' => 'library',
'install_path' => __DIR__ . '/../tsugi/lib',
'aliases' => array(
Expand Down
1 change: 0 additions & 1 deletion vendor/tsugi/lib/src/Util/LTI13.php
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,6 @@ public static function deleteLineItem($lineitem_url, $access_token, &$debug_log=
public static function createLineItem($lineitems_url, $access_token, $lineitem, &$debug_log = false) {
$scoreMaximum = $lineitem->scoreMaximum ?? 100;
$lineitem->scoreMaximum = is_numeric($scoreMaximum) ? floatval($scoreMaximum) : 100;
$lineitem->scoreMaximum = floatval($lineitem->scoreMaximum);
if ( ! is_string($lineitem->label ?? null) ) $lineitem->label = strval($lineitem->label ?? null);
if ( ! is_string($lineitem->resourceId ?? null) ) $lineitem->resourceId = strval($lineitem->resourceId ?? null);

Expand Down

0 comments on commit 0af4000

Please sign in to comment.