Skip to content

Commit

Permalink
Resolving php8.4 code deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnar Eivind Martinsen committed Sep 24, 2024
1 parent 19b4824 commit 7a088b5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function execute($entity = NULL) {
*
* @todo Make sure this access function behave as expected.
*/
public function access($object, AccountInterface $account = NULL, $return_as_object = TRUE) {
public function access($object, AccountInterface $account, $return_as_object = TRUE) {
if ($object->getEntityTypeId() === 'metsis_basket_item') {
/* $access = $object->access('delete', $account, true)
->andIf($object->status->access('delete', $account, true));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function executeMultiple(array $objects): void {
*
* @todo Make sure this access function behave as expected.
*/
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
public function access($object, AccountInterface $account, $return_as_object = FALSE) {
if ($object->getEntityType() === 'metsis_basket_item ') {
$access = $object->access('transform', $account, TRUE)
->andIf($object->status->access('transform', $account, TRUE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function executeMultiple(array $objects) {
*
* @todo Make sure this access function behave as expected.
*/
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
public function access($object, AccountInterface $account, $return_as_object = FALSE) {
if ($object->getEntityType() === 'metsis_basket_item ') {
$access = $object->access('transform', $account, TRUE)
->andIf($object->status->access('transform', $account, TRUE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function executeMultiple(array $objects) {
*
* @todo Make sure this access function behave as expected.
*/
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
public function access($object, AccountInterface $account, $return_as_object = FALSE) {
if ($object->getEntityType() === 'metsis_basket_item ') {
$access = $object->access('transform', $account, TRUE)
->andIf($object->status->access('transform', $account, TRUE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public function getChildrenCount(Request $request) {
$found = $result->getNumFound();
// dpm($found, __FUNCTION__);
// dpm($total, __FUNCTION__);.

// The total number of documents returned from the query.
// $count = $result->count();
// Check the Solr response status (not the HTTP status).
Expand Down

0 comments on commit 7a088b5

Please sign in to comment.