EasyPost / easypost-php

PHP client for EasyPost API

Home Page:https://easypost.com/docs/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Typo in parcel weight property PHPDoc

aaronjewell opened this issue · comments

Software Version

6.3.0

Language Version

8.1

Operating System

Linux

What happened?

  1. Create an instance of EasyPost\Parcel
  2. Access the $weight public property
  3. Analyze the code with static analysis (PHPStan/Psalm) or use an IDE with built-in Language Server
  4. $weight property is not defined.

What was expected?

$weight is a valid property on the EasyPost\Parcel class

Sample Code

$parcel = EasyPost\Parcel::retrieve('<id>');
echo $parcel->weight; // property is not defined in ide/static analysis

Relevant logs

No response

Submitting a PR shortly.