Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ging-dev committed Jun 29, 2024
1 parent 52dafb8 commit 0ce0755
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: static analysis

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
tests:
uses: laravel/.github/.github/workflows/static-analysis.yml@main
2 changes: 1 addition & 1 deletion src/Api/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function customer(): Customer
{
return $this->getObjectMapper()->hydrateObject(
Customer::class,
$this->post('/getCustomerDetails'),
$this->post('/getCustomerDetails')['customerInfo'],
);
}

Expand Down
15 changes: 1 addition & 14 deletions src/Entity/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'jobTitle' => 'job',
'feeAcctNo' => 'accountNumber',
])]
readonly class Info
readonly class Customer
{
/**
* @internal
Expand All @@ -23,16 +23,3 @@ public function __construct(
) {
}
}

readonly class Customer
{
/**
* @internal
*/
public function __construct(
public string $userName,
#[MapFrom('customerInfo')]
public Info $info,
) {
}
}

0 comments on commit 0ce0755

Please sign in to comment.